array.slice()
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
start |
Yes |
Zero-based Array element index to start copying, inclusive. A negative start counts from array element zero. |
|
end |
Zero-based Array element index to end copying, exclusive. When end is larger than the Array length, all elements are copied from start to the last Array element. If end is less than or equal to start, an empty array is returned. |
Return value
Type | Description |
---|---|
Array with elements from the start index to the end index, inclusive, of the calling array. |
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!