💡 ECMAScript 2025 is officially out I’ve been reviewing the spec this week, and some of the additions are genuinely useful, especially regarding iterators and sets. JavaScript now supports .map(), .filter(), .take(), and .drop() directly on iterators. No more converting to arrays to do a simple transform. It’s lazy, chainable, and finally feels like it’s catching up to modern expectations. Iterator.from(NodeList) will also clean up many DOM patterns. Combine it with .toArray() and you’ve got a flexible pipeline without losing performance to unnecessary allocations. 🧩 The new Set methods are also solid: ✅ union, intersection, difference—finally native 🧪 isDisjointFrom, isSubsetOf, isSupersetOf 🚀 JSON imports are safer now with { type: "json" }, and RegExp.escape() fixes a 15-year-old annoyance when escaping wildcards. And Promise.try()? Clean way to handle mixed sync/async logic in one wrapper It's one of those releases that feels like it's been a long time coming. 📎 Link to the full writeup in the comments 👇 (I've been writing about most of the features for the last year, subscribe to my newsletter to get cool insights before they become mainstream, link in comments) #JavaScript #ECMAScript2025 #Frontend #WebDevelopment #Standards #DevTools #CareerOS #ES2025
This feels like it's heavily inspired by RXJS operators. This should be more difficult for someone with no functional programming background. Thanks for sharing
Did "Iterator" thingy back in 2016 with RxJS :) in Angular 2 RC
Love this, Dan. Thanks for sharing!
Interesting post, but I still think the built-in array, iterable, async iterable, methods are a bit lacking. That's why I wrote the @daiso-tech/core library, which works with arrays, iterables, and async iterables. The library includes more convenient methods that aren't available in ECMAScript 2025. You can check out the documentation here: https://daiso-core.vercel.app/docs/Collection/collection_usage
Map and filter are nice, but reduce is going to be the ultimate superpower.
Thanks for sharing
Iterator methods look so exciting
Tech Co-Founder | Staff Software Engineer | Organizer of ReactJS Barcelona Meetup
2mohttps://ecma-international.org/news/ecma-international-approves-new-standards-11