?
slice
Summary​
Returns a subset of an array
Description​
Returns [] if count
is 0 or if index
is out of bounds.
Fields​
array​
An array with items to extract.
index​
The position to start the slice. A negative integer will set the position from the end of the array. For example, -1 starts slicing from the last element.
count​
The number of items to extract starting from the index position.
Helpful?