[Webkit-unassigned] [Bug 234327] New: Implement Array.prototype.groupBy and Array.prototype.groupByToMap
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 14 17:47:00 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=234327
Bug ID: 234327
Summary: Implement Array.prototype.groupBy and
Array.prototype.groupByToMap
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: drousso at apple.com
`Array.prototype.groupBy` and `Array.prototype.groupByToMap` just advanced to TC39 stage 3
Proposal: <https://github.com/tc39/proposal-array-find-from-last>
Spec: <https://tc39.es/proposal-array-find-from-last/index.html>
```
const array = [1, 2, 3, 4, 5];
array.groupBy(n => n % 2 ? "odd" : "even") // { odd: [1, 3, 5], even: [2, 4] }
array.groupByToMap(n => n % 2 ? "odd" : "even") // Map [["odd", [1, 3, 5]], ["even", [2, 4]]
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211215/5c0a7ead/attachment-0001.htm>
More information about the webkit-unassigned
mailing list