Methods
isWindow(value) → {Boolean}
Returns if a value is a window.
Parameters:
Name | Type | Description |
---|---|---|
value |
* | the value to check |
Returns:
true if value is a window
- Type
- Boolean
Example
if( isWindow(val) ){
return val.location.origin;
}