[Webkit-unassigned] [Bug 227939] New: Implement Array.prototype.findLast and Array.prototype.findLastIndex

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 13 20:05:28 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=227939

            Bug ID: 227939
           Summary: Implement Array.prototype.findLast and
                    Array.prototype.findLastIndex
           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.findLast` and `Array.prototype.findLastIndex` 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 = [{ value: 1 }, { value: 2 }, { value: 3 }, { value: 4 }];

array.find(n => n.value % 2 === 1); // { value: 1 }
array.findIndex(n => n.value % 2 === 1); // 0

array.findLast(n => n.value % 2 === 1); // { value: 3 }
array.findLastIndex(n => n.value % 2 === 1); // 2
```

-- 
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/20210714/0aa63b4a/attachment.htm>


More information about the webkit-unassigned mailing list