๐ŸŽฎ Group an array in one line

Pick a key below and watch these tasks snap into buckets โ€” that's Object.groupBy(tasks, t => t[key]), the native replacement for the hand-written reduce everyone writes. Click any task to change it live.

Group byโ€ฆ

The one line that replaces the reduce


        

      

The tasks

Tip: click any row to cycle its status โ€” it jumps to a different bucket instantly.

TaskStatusPriorityAssignee

Bonus ยท Map.groupBy โ€” when keys aren't strings