Function scanUntil

  • Scan from left, until a test passes.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • ft: TestFunction<T>

      test function (v, i, x)

    Returns number

    first index where test passes

Generated using TypeDoc