#
shift
Function • Removes value from the start of the array and returns it, mutating the array.
shift array → value
Arguments
| name | type | description |
|---|---|---|
| array | Array |
The array from which to get the value. |
Returns
| name | type | description |
|---|---|---|
| value | Any | The element removed from the array. |