この記事では2022年06月06日~09日に開催された TC39 meeting 90th で議題に上がったプロポーザルを紹介します。 For Stage 4 findLast / findLastIndex Stage 4 に到達しました findLast と findLastIndex は、Array.prototype.find と Array.prototype.findIndex の逆から走査するバージョンです。 const arr = [ { prop1: 1, prop2: "foo" }, { prop1: 1, props2: "bar" }, ]; const obj1 = arr.find((element) => element.prop1 === 1); console.log(obj1.prop2); // "foo" const obj2 = arr.find
![ECMAScriptの最新動向 2022年06月版 | サイボウズ フロントエンドエキスパートチーム](https://cdn-ak-scissors.b.st-hatena.com/image/square/ad80025a4c467d1037a2d83688aaf819990cdff1/height=288;version=1;width=512/https%3A%2F%2Fcybozu.github.io%2Ffrontend-expert%2Fogp%2Fposts%2Ftc39-meeting-2022-06.jpg)