hermes icon indicating copy to clipboard operation
hermes copied to clipboard

Implement ES2024 `Object.groupBy`

Open robik opened this issue 1 year ago • 2 comments

Summary

This PR implements ES2024 Object.groupBy function.

Test Plan

Added tests

$ echo "Object.groupBy([1, 2, 3, 4, 5, 6, 7], key => key)" | ./hermes
>> { 1: [ 1, [length]: 1 ], 2: [ 2, [length]: 1 ], 3: [ 3, [length]: 1 ], 4: [ 4, [length]: 1 ], 5: [ 5, [length]: 1 ], 6: [ 6, [length]: 1 ], 7: [ 7, [length]: 1 ] }

robik avatar Jun 28 '24 14:06 robik

This feature would be awesome! Are there any plans to merge this PR?

camilossantos2809 avatar Jan 14 '25 17:01 camilossantos2809

Yes, we definitely intend to merge it. We have been preoccupied with other stuff :-(

tmikov avatar Jan 15 '25 17:01 tmikov