Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(collections/group_by): align to proposal #3390

Merged
merged 1 commit into from
May 19, 2023
Merged

feat(collections/group_by): align to proposal #3390

merged 1 commit into from
May 19, 2023

Conversation

jsejcksn
Copy link
Contributor

Follow up to #1880

  • Accept iterable inputs
  • Add index param to callback

See recent changes in tc39/proposal-array-grouping — prototype methods have now been changed to static factory methods. This PR aims to align the groupBy function to the new (non-breaking) API.

- accept iterable input
- add index param to callback
@jsejcksn jsejcksn requested a review from kt3k as a code owner May 19, 2023 02:25
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks a nice, non-breaking enhancement. LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants