JavaScript Array Splice – Syntax and Examples
The JavaScript splice method is a multi-purpose tool. The syntax of the Array method is as follows.
Array.splice(startIndex[, endIndex, [item1[, item2, item3, ...]]])
The following examples demonstrate the way the splice method can be used. (more...) ...