Returns the element at index i in the array. Throws if the index is not defined.

  • Type Parameters

    • T

    Parameters

    • array: T[]

    Returns ((i: number) => T)

      • (i): T
      • Parameters

        • i: number

        Returns T