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 |
---|---|---|---|---|
|
|
| The array to add an item to | |
|
|
| The value to add |
Examples
Related
Last updated