Namespace: Basic:isWindow

Basic:isWindow

Source:

Methods

isWindow(value) → {Boolean}

Returns if a value is a window.

Parameters:
Name Type Description
value *

the value to check

Source:
Returns:
true if value is a window
Type
Boolean
Example
if( isWindow(val) ){
  return val.location.origin;
}