#
splice
Function • Removes the elements in array from start up to, but not including, end, and returns the mutated array.
splice start, end, array → array
Arguments
| name | type | description |
|---|---|---|
| start | Number |
The index of the first element in the range of elements to remove. |
| end | Number |
The index of the last element in the range of elements to remove. |
| array | Array |
The array from which to remove elements. |
Returns
| name | type | description |
|---|---|---|
| array | Array |
The mutated array. |