• Gets the element at index n of array. If n is negative, the nth element from the end is returned.

    Type Parameters

    • T

    Parameters

    • array: undefined | null | List<T>

      array The array to query.

    • Optional n: number

    Returns undefined | T

    Returns the nth element of array.

Generated using TypeDoc