Function partition

  • Segregate values by test result.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • ft: TestFunction<T>

      test function (v, i, x)

    Returns [T[], T[]]

    [satisfies, doesnt]

Generated using TypeDoc