Function scanWhile

  • Scan from left, while 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 fails

Generated using TypeDoc