ArrayUnshift
This function adds one or more elements to the beginning of the original array and returns the length of the modified array.
Method Signature
Arguments
Argument
Type
Required
Description
Default
array
modifiablearray
true
The array to add an item to
object
any
true
The value to add
Examples
Related
Last updated