partition<T, A, B>(l, partitioner): { left: A[]; right: B[]; }
Partitions a list into two lists - one for which the supplied partitioner returns true (the left list), and the other, the
right list, for which the supplied partitioner does not return true.
Partitions a list into two lists - one for which the supplied partitioner returns true (the
left
list), and the other, theright
list, for which the supplied partitioner does not return true.