• Gets the element in the ArrayLike at the given index, or throws an IllegalArgumentError if out of range.

    Type Parameters

    • T

    Parameters

    • array: ArrayLike<T>
    • index: number

    Returns T