July 1998
Intermediate to advanced
1456 pages
65h 5m
English
slice() — NN 4 IE J3 ECMA n/a
slice(startIndex[,endIndex])
Returns an array that is a subset of contiguous items from the main array. Parameters determine where the selection begins and ends.
An Array object.
startIndex
A zero-based integer of the first item of the subset from the current array.
endIndex
An optional zero-based integer of the last item of the subset from the current array. If omitted, the selection is made from the startIndex position to the end of the array.
Read now
Unlock full access