Function index

  • Get zero-based index for an element in array.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • i: number

      ±index

    Returns number

    i' | x[i'] = x[i]; i' ∈ [0, |x|]

Generated using TypeDoc