proposal-array-prototype-partition icon indicating copy to clipboard operation
proposal-array-prototype-partition copied to clipboard

A TC39 proposal for an utility function that returns two arrays based on the items' conformity to a predicate.

Results 1 proposal-array-prototype-partition issues
Sort by recently updated
recently updated
newest added

It's a bit more generic operation "partition" ```javascript let groupBy = (f, coll) => { let rf = (acc, el) => { let id = f(el); acc[id] = [... (acc[id]...