Documentation

get()

Returns the object that’s at the specified position in the list.

get(index: number): T | undefined;

Parameters

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