Summary
Shifts the array by one.
Description
Removes the first element from an array. This method changes the length of the array.
Route
POST /array/shift
Roles
admin
Parameters
DetailsExampleSchema
Name | Type | Required | Description |
---|---|---|---|
arr | array | yes | The array to shift |
Return
DetailsExampleSchema
Name | Type | Description |
---|---|---|
shiftedArray | array | The shifted array; undefined if the array is empty |