• 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

    Parameters

    • rule: Function

      {Function}

    Returns any[]

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