push/enqueue
Function • Adds to the end of an array, returning the mutated array.
push array, value → array
Arguments
| name |
type |
description |
| array |
Array |
The array to which to add. |
| value |
Any |
The value to add to the array. |
Returns
| name |
type |
description |
| array |
Array |
The mutated array. |
Aliases:
enqueue