code-chronicles-code / code-chronicles-code/leetcode-curriculum
Add a `groupBy` goody
Ouverte
enhancement
typescript
- Langage dominant
- TypeScript
- Étoiles
- 20
- Forks
- 12
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Inspiration from Ruby: https://rubydoc.info/stdlib/core/Enumerable:group_by
A reasonable place for it to live would be on `Iterator.prototype`, then anything that can give us an iterator can also be grouped.
Should we return a Map or an object? Either one could work, though a Map seems more future-looking, since it will support grouping by something other than strings/numbers/Symbols.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.