Microsoft®
JScript splice Method (Array) |
Language Reference Version 3
|
Deletes elements of an array.
arrayObj.splice(start [,length] [,elements])The splice method syntax has these parts:
Part Description arrayObj Required. An Array object. start Required. The zero-based index of the beginning of the specified portion of arrayObj. length Optional. The number of elements to remove from arrayObj. If not specified, every element starting from the given index will be removed from the array elements Optional. Requires length. List of elements to insert at the start.
The splice method modifies an Array object by removing the specified portion of arrayObj or adding elements.