Function find

  • Find first value passing a test.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • ft: TestFunction<T>

      test function (v, i, x)

    Returns T

    first v | ft(v) = true; v ∈ x

Generated using TypeDoc