Methods
isDocument(value) → {Boolean}
Returns if a value is an HTML document.
Parameters:
Name | Type | Description |
---|---|---|
value |
* | the value to check |
Returns:
true if value is an HTML document
- Type
- Boolean
Example
if( isDocument(val) ){
return val.body;
}