Summary
Removes the last element.
Description
Removes the last element from an array and returns the new array with an element removed. This method changes the length of the array.
Route
POST /array/pop
Roles
admin
Parameters
DetailsExampleSchema
| Name | Type | Required | Description |
|---|---|---|---|
| arr | array | yes | The array to remove from |
Return
DetailsExampleSchema
| Name | Type | Description |
|---|---|---|
| poppedArray | array | The array with without the last element |