Methods
sliceArray(array, fromopt, toopt, stepopt) → {Array.<Object>}
Slice an array.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
array |
Array.<Object> | the input array | ||
from |
number |
<optional> |
NaN | the start of the slice |
to |
number |
<optional> |
NaN | the end of the slice |
step |
number |
<optional> |
NaN | the step of the slice |
- Source:
Returns:
the array slice
- Type
- Array.<Object>