Excerpt from the JavaScript authoritative guide
1.join ()
Returns the generated string.
The array elements are converted to strings and stitched together. Default delimiter: ",".
2.reverse ()
Returns an array of reverse order, replaced.
The elements in the array are reversed.
3.sort ()
Returns the sorted array, replaced.
Sorts the elements in the array.
No parameters: alphabetical order, undefined element tail;
Parameters are comparison functions:
4.concat ()
Creates and returns a new array.
Elements of the new array: Call Concat () for each parameter of the original array of elements, concat ().
The parameter itself is an array, and the elements of the array are concatenated, not the array itself.
Arrays that do not recursively flatten arrays.
The called array is not modified.
5.slice ()
Returns a fragment or sub-array of the specified array.
Parameter 1: The start position of the fragment;
Parameter 2: The end position of the fragment;
Contains the first parameter, without the second argument.
-1: Last parameter.
6.splice ()
Inserts or deletes an element in an array.
Parameter 1: Starting position of insert/delete;
Parameter 2: The number of elements removed from the array;
Parameter 3,4 ...: the element that is inserted into the array.
7.push (), Pop ()
Simulates the array as a stack;
Push (): Adds an element at the end of the array, returning the array length;
Pop (): Deletes the last element of the array, decreases the length of the array, and returns the deleted value;
8.unshift (), Shift ()
Unshift (): Adds an element to the head of the array, returning the array length;
Shift (): Deletes the first element of the array, which is returned.
Multiple arguments are called unshift (), and the parameters are inserted once.
9.toString (), tolocalestring ()
ToString (): Converts each element to a string, outputting "," delimited list of strings;
toLocaleString (): Converts each element to a string, using the localized delimiter.
ECMAScript 5
ForEach ()
Map ()
Filter ()
Every (), some ()
Reduce (), reduceright ()
IndexOf (), LastIndexOf ()