Array

Array Class uses for managing and controlling an array.

concat(item1 [ , item2[, ...]])

Returns a new array comprised of this array joined with other array(s) and/or value(s).

join(separator)

Joins all elements of an array into a string.

length

Integer specifying the number of elements in an array.

pop()

Removes the last element from an array and returns that element.

push(item1 [, item2[, ...]])

Adds one or more elements to the end of an array and returns the new length of the array.

reverse()

Reverses the preorder of an array.

shift()

Removes the first element from an array and returns that element.

slice(start, end)

Extracts a section of an array and returns a new array.

sort(comparefn)

Sorts the elements of an array. A Functions is written as follows. If a returned value is negative, a small value moves to a low-order, and if it is positive, a large value moves to a low-order.

function comparefn( _n1 , _n2 ){

	return _n1 - _n2;

}

splice(start, deleteCount, item1 [, item2[, ...]])

Returns the array with the specified elements inserted or removed.

toString()

Returns a string representing the specified array and its elements.

toLocaleString()

Returns a localized string version of the array.

unshift(item1 [, item2[ , ...]])

Adds one or more elements to the beginning of an array and returns the new length of the array.