Function indexRange

  • Get zero-based index range for part of array.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • i: number = 0

      begin ±index [0]

    • I: number = x.length

      end ±index (exclusive) [|x|]

    Returns [number, number]

    [i', I'] | i' ≤ I'; i', I' ∈ [0, |x|]

Generated using TypeDoc