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(map-and-set): Map.groupBy静的メソッドの追加 #1751

Merged
merged 6 commits into from
Jul 21, 2024
Merged

Conversation

azu
Copy link
Collaborator

@azu azu commented Jul 20, 2024

概要

ES2024では、配列の要素をグループ分けしたマップを作成するMap.groupBy静的メソッドが追加されています。

Map.groupBy静的メソッドはObject.groupBy静的メソッドとよく似たメソッドです。
Object.groupBy静的メソッドは配列からオブジェクトを作成するのに対して、Map.groupBy静的メソッドは配列からマップを作成します。

Map.groupBy静的メソッドも元々は、Array.prototype.groupToMapメソッドという配列のメソッドとして提案されていましたが、Object.groupBy静的メソッドに合わせる形でMap.groupBy静的メソッドに変更されました。

変更されたページ

変更内容

  • Map.groupBy静的メソッドの説明を追加

関連

cc @koralle

@bot-user

This comment was marked as off-topic.

@azu azu self-assigned this Jul 20, 2024
@bot-user
Copy link

bot-user commented Jul 20, 2024

Deploy Preview for js-primer ready!

Name Link
🔨 Latest commit 1ada50b
🔍 Latest deploy log https://app.netlify.com/sites/js-primer/deploys/669bbd60bd2d4f0007cb97ab
😎 Deploy Preview https://deploy-preview-1751--js-primer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@azu azu changed the title feat(map-and-set): Map.groupByの追加 feat(map-and-set): Map.groupBy静的メソッドの追加 Jul 20, 2024
@azu azu marked this pull request as ready for review July 21, 2024 03:35
@azu azu merged commit 4357b65 into master Jul 21, 2024
13 checks passed
@azu azu deleted the feature/1716-map branch July 21, 2024 05:36
@azu azu mentioned this pull request Jul 21, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants