Introduction
Group an array of objects by a key or selector function. No dependencies.
Platform: TypeScript / JavaScript (any environment).
Utility
Example
ts
const byStatus = groupBy(tasks, (t) => t.status);
Footer
For large lists, consider indexing once and reusing the map instead of regrouping on every render.