Object.groupBy Playground

Mr. Wiryo walks train #1 and each key decides the siding a wagon is coupled onto: what becomes of number keys in Object.groupBy and in Map.groupBy, and what…

The key idea

groupBy = the grouping reduce, standardised

Try it in this playground