Is

Is

A utility for testing the type of a reference

Constructor

new Is()

Source:

Methods

(static) array(object) → {boolean}

Tests if the object is an array

Parameters:
Name Type Description
object object

The object to test

Source:
Returns:

If set to true, the object is an array

Type
boolean

(static) canvas(object) → {boolean}

Tests if the object is a canvas

Parameters:
Name Type Description
object object

The object to test

Source:
Returns:

If set to true, the object is a canvas

Type
boolean

(static) element(object) → {boolean}

Tests if the object is a HTMLElement

Parameters:
Name Type Description
object object

The object to test

Source:
Returns:

If set to true, the object is a HTMLElement

Type
boolean

(static) object(object) → {boolean}

Tests if the object is an object, not an array

Parameters:
Name Type Description
object object

The object to test

Source:
Returns:

If set to true, the object is an object

Type
boolean