• Partition an original array into two children array based on a logical test Elements which test as false go into the first result while elements testing as true appear in the second

    Type Parameters

    • T

    Parameters

    • rule: (element: T) => boolean

    Returns [T[], T[]]

    An Array of length two whose elements are the partitioned pieces of the original