Array.unshift
unshift — Adds a new value to the beginning of the array.
Description
Array.unshift(mixed value)
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
value | mixed | No |
Return values
integer. The new length of the array.
Examples
Example #1 – unshift example