@cheesebit/partition (npm): Creates an object splitting given collection into groups, based on the return of the given predicate when invoked with each collection's item.
Keywords: partition|groups|group by