Summary
Adds an element to the end of the array.
Description
Adds one element to the end of an array and returns the (newly modified) array.
Route
POST /array/push
Roles
admin
Parameters
DetailsExampleSchema
Name | Type | Required | Description |
---|---|---|---|
arr | array | yes | The array to push onto |
elementN | * | yes | The element to push |
Return
DetailsExampleSchema
Name | Type | Description |
---|---|---|
pushedArray | array | The array with the pushed element |