#
insert
Function • Inserts a value into an array, returning the mutated array.
insert index, value, array → array
Arguments
| name | type | description |
|---|---|---|
| index | Number |
The index where the value will be inserted. |
| value | Any | The value to insert. |
| array | Array |
The array into which to insert the value. |
Returns
| name | type | description |
|---|---|---|
| array | Any | The mutated array resulting from inserting the value. |