Function lastIndexOf

  • Find last index of a value.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • v: T

      search value

    • i: number = ...

      begin index [|x|-1]

    Returns number

    last index of v in x[0..i] if found else -1

Generated using TypeDoc