Split into [matches, rest] based on predicate. Relative order is preserved within each side.
[matches, rest]
predicate
Dual API — works data-first or curried for use in pipe.
pipe
const [active, inactive] = pipe( users, Arrays.partition((u) => u.active), ) Copy
const [active, inactive] = pipe( users, Arrays.partition((u) => u.active), )
Split into
[matches, rest]based onpredicate. Relative order is preserved within each side.Dual API — works data-first or curried for use in
pipe.