6 New Features in ECMAScript 2025
If you write JavaScript (or yell at it occasionally), you'll want to know what's new in ECMAScript 2025 — and why features #3 and #5 are genuinely exciting.
If you write JavaScript (or yell at it occasionally), you'll want to know what's new in ECMAScript 2025. This year's release brings six features that range from "finally!" to "I didn't know I needed this."
Here are the six new features worth knowing:
**1. Promise.try()** — Wrap synchronous code in a promise without a try/catch boilerplate.
**2. Iterator helpers** — map, filter, take, drop on iterators natively. Long overdue.
**3. RegExp.escape()** — No more writing your own escape function. This is feature #3 and it's genuinely great.
**4. Float16Array** — Better support for ML workloads in the browser.
**5. Import attributes** — Type-safe JSON imports and beyond. Feature #5 changes how you think about module imports.
**6. Error.isError()** — Because "instanceof Error" was always a trap across realms.
Each of these is small on its own. Together, they close real gaps in the language that developers have been working around for years.
---
*Originally published on [Substack](https://venkatavemuri.substack.com/p/6-new-features-in-ecmascript-2025).*