August 1999
Intermediate to advanced
1488 pages
72h 53m
English
array.slice(start) array.slice(start, stop)
The slice() method returns a new array that contains the elements of the original array starting at position start and ending at the element position before stop. If no stop position is specified, the new array will contain the elements of the original array, starting at the position stated in start through the end of the array. Table 6.14 lists the arguments and return values associated with this method.
| Type | Item | Description |
|---|---|---|
| Arguments | start | The position in the array where the slice is to begin. Negative numbers can be used to count from the last ... |
Read now
Unlock full access