ArrayShift
Last updated
Last updated
Removes the first element from an array and returns the removed element.
This method changes the length of the array. If used on an empty array, an exception will be thrown.
Argument | Type | Required | Description | Default |
---|---|---|---|---|
array
modifiablearray
true
The array to shift
defaultValue
any
false