Array

Description

An array with integer indexing and a?length?property.

Properties

length readonly The length of the array

Constructors

Array readonly Creates and returns a new array.

Methods

concat readonly Returns a new array created by concatenating the given values to the end of the original array.
join readonly Joins all elements of the array into a string; optionally, each element is separated by delimiter.
pop readonly Removes the last element from the array, decreases the length by 1, and returns the value of the element.
push readonly Places one or more values onto the end of the array and increases length by n.
reverse readonly Reverses the order of the elements in the array.
shift readonly Removes the first element from the array, decreases the length by 1, and returns the value of the element.
slice readonly Creates a new array, which contains a subset of the original array’s elements.
sort readonly Sorts the elements of the array in place, using the given function to compare to elements.
splice readonly Removes num elements from the array beginning with index, start.
toLocaleString readonly Converts an array to a string and returns the string (localized).
toSource readonly Creates a string representation of this object that can be fed back to?eval()?to re-create an object. Works only with built-in classes.
toString readonly Converts an array to a string and returns the string.
unshift readonly Adds one or more elements to the beginning of the array.