Array.unshift

Function/Meaning

Add the element to the beginning of the array.

Type
Arrayclassmethod of
Syntax
unshift(value, ...) :int
Arguments
value

Additional value

Return value

Size after addition

Explanation

If multiple elements are specified, multiple elements can be added at the beginning.
In this case, for example, if passed in the order of a, b, c, the first element of the array will be in the order of a, b, c.