Class: Array

Array()

new Array()

Add some methods and properties to standerd JavaScript object.

Methods

clone() → {Array}

Makes a shallow copy of the array.
Returns:
A shallow copy of the array
Type
Array

contains(element) → {Boolean}

Checks whether the array contains a given element.
Parameters:
Name Type Description
element * The element to search for
Returns:
True if the array contains a given element
Type
Boolean

equals(array) → {Boolean}

Checks whether the two arrays are same.
Parameters:
Name Type Description
array Array The array to compare to
Returns:
True if the two arrays are same
Type
Boolean