Namespace: Basic:isDocument

Basic:isDocument

Source:

Methods

isDocument(value) → {Boolean}

Returns if a value is an HTML document.

Parameters:
Name Type Description
value *

the value to check

Source:
Returns:
true if value is an HTML document
Type
Boolean
Example
if( isDocument(val) ){
  return val.body;
}