arrayObj.splice(start, deleteCount, [item1[, item2[, . . . [,itemN]]]])
Parameters
arrayObj
Required. An Array object.
start
Required. Specifies the starting position to remove elements from the array, starting from 0.
deleteCount
Required. The number of elements to remove.
item1, item2,. . .,itemN
Required. A new element to be inserted at the location of the removed element.
Description
The splice method can modify arrayObj by removing a specified number of elements starting from the start position and inserting new elements. The return value is a new Array object consisting of the removed elements.
Requires
version 5.5