get
Returns the object that’s at the specified position in the list.
get(index: number): T | undefined
Parameters
- index — The list index for which to look up the current object, 0-based (i.e. the first object is at index 0, not 1)
Errors
- This method throws an error if the provided index isn’t a number, a negative number, or outside the bounds of this list.
Related
- class ManagedListA data structure that contains an ordered set of managed objects.