Dan Neciu’s Post

View profile for Dan Neciu

Tech Co-Founder | Staff Software Engineer | Organizer of ReactJS Barcelona Meetup

💡 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

  • text
Dan Neciu

Tech Co-Founder | Staff Software Engineer | Organizer of ReactJS Barcelona Meetup

2mo
Dan Neciu

Tech Co-Founder | Staff Software Engineer | Organizer of ReactJS Barcelona Meetup

2mo
Like
Reply

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

Oleksandr P.

Software Engineer | Solution Architect | Javascript, Rust, Go | 13 yrs

2mo

Did "Iterator" thingy back in 2016 with RxJS :) in Angular 2 RC

Hamza Mohammed

MVP Builder for Founders | Full-Stack Developer & SaaS Founder (AI Elevate CV)

2mo

Love this, Dan. Thanks for sharing!

Like
Reply
Yousif A.

Passionate Fullstack Software Engineer | Expert in Typescript, React, Next Js, Node Js and Mongodb

2mo

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

Sasha Chudesnov

UI & Accessibility Engineer at Medallia

2mo

Map and filter are nice, but reduce is going to be the ultimate superpower.

Like
Reply
Samir Bettahar

Software Engineer | Full-Stack Developer with ReactJS, NestJS & Spring Boot expertise

2mo

Thanks for sharing

Alexey Lizurchik

Software Engineer | Senior Frontend Developer | TypeScript, React, Next.js, LLM | Performance & DX | 12+ YoE | Remote EU | B2B

2mo

Iterator methods look so exciting

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories