Links: http://www.w3school.com.cn/jsref/jsref_obj_array.asp
Array Object method
Method |
Description |
Concat () |
Joins two or more arrays and returns the result. |
Join () |
Put all the elements of the array into a string. element is delimited by the specified delimiter. |
Pop () |
Delete and return the last element of the array |
Push () |
Adds one or more elements to the end of the array and returns the new length. |
Reverse () |
Reverses the order of the elements in the array. |
Shift () |
Delete and return the first element of the array |
Slice () |
Returns the selected element from an existing array |
Sort () |
Sorting elements of an array |
Splice () |
Deletes the element and adds a new element to the array. |
Tosource () |
Returns the source code for the object. |
ToString () |
Converts the array to a string and returns the result. |
toLocaleString () |
Converts the array to a local array and returns the result. |
Unshift () |
Adds one or more elements to the beginning of the array and returns the new length. |
ValueOf () |
Returns the original value of an array object |
JS Operation for arrays