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