Object Method Array.slice
Returns a new array, from the start position up to the count of elements
Array.slice(number offset,[number length]):array
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
offset | number | Yes | start position in the original array to slice |
length | number | No | maximum elements to slice from offset |