2ality – JavaScript and more

フィード

記事のアイキャッチ画像
ECMAScript 2023 feature: symbols as WeakMap keys
2ality – JavaScript and more
<p>In this blog post, we take a look at the ECMAScript 2023 feature <a href="https://github.com/tc39/proposal-symbols-as-weakmap-keys">“Symbols as WeakMap keys”</a> – which was proposed by Robin Ricard, Rick Button, Daniel Ehrenberg, Leo Balter, Caridy Patiño, Rick Waldron, and Ashley Claymore.</p>
2日前
記事のアイキャッチ画像
ECMAScript 2025 feature: duplicate named capturing groups for regular expressions
2ality – JavaScript and more
<p>In this blog post, we take a look at the ECMAScript 2025 feature <a href="https://github.com/tc39/proposal-duplicate-named-capturing-groups">“Duplicate named capturing groups”</a> which was proposed by Kevin Gibbons.</p><p>It’s a feature for regular expressions that enables us to use the same capturing group name more than once.</p>
5日前
記事のアイキャッチ画像
ECMAScript 2024 feature: <code>Promise.withResolvers()</code>
はてなブックマークアイコン 2
2ality – JavaScript and more
<p>In this blog post we take a look at the ECMAScript 2024 feature <a href="https://github.com/tc39/proposal-promise-with-resolvers">“<code>Promise.withResolvers</code>”</a> (proposed by Peter Klecha). It provides a new way of directly creating Promises, as an alternative to <code>new Promise(...)</code>.</p>
7日前