Overview
Returns the specified elements of the list stored atkey. The offsets start and end are zero-based indexes. These offsets can also be negative numbers indicating offsets from the end of the list.
Method Signature
Parameters
string
required
The key of the list.
number
required
The starting index (zero-based). Negative values indicate offsets from the end of the list (e.g.,
-1 is the last element, -2 is the second-to-last).number
required
The ending index (zero-based, inclusive). Negative values indicate offsets from the end of the list. Use
-1 to get all elements from start to the end of the list.Return Value
TResult[]
An array of elements in the specified range. Returns an empty array if the list does not exist or the range is out of bounds.