hermes icon indicating copy to clipboard operation
hermes copied to clipboard

Implement ES2024 `Map.groupBy`

Open robik opened this issue 1 year ago • 1 comments

Summary

This PR implements EcmaScript 2024 Map.groupBy

Test Plan

Added tests.

>> Map.groupBy([1, 2, 3, 4, 5, 6, 7], function(key) { return key % 2; })
Map { "1" => [ 1, 3, 5, 7, [length]: 4 ], "0" => [ 2, 4, 6, [length]: 3 ] }

robik avatar Jun 28 '24 15:06 robik

@lavenzg has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar Jun 28 '24 21:06 facebook-github-bot