Function search

  • Find index of first value passing a test.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • ft: TestFunction<T>

      test function (v, i, x)

    Returns number

    first index of value, -1 if not found

Generated using TypeDoc