2ality – JavaScript and more
ECMAScript proposal: <code>Promise.withResolvers()</code>
ECMAScript proposal: <code>Promise.withResolvers()</code>
2Ality
ECMAScript 2024 feature: `Promise.withResolvers()`
In this blog post we take a look at the ECMAScript 2024 feature “Promise.withResolvers” (proposed by Peter Klecha). It provides a new way of directly creating Promises, as an alternative to new Promise(...).
2ality – JavaScript and more
ECMAScript proposal: duplicate named capturing groups for regular expressions
ECMAScript proposal: duplicate named capturing groups for regular expressions
2Ality
ECMAScript 2025 feature: duplicate named capturing groups for regular expressions
In this blog post, we take a look at the ECMAScript 2025 feature “Duplicate named capturing groups” which was proposed by Kevin Gibbons. It’s a feature for regular expressions that enables us to use the same capturing group name more than once.