JS: ECMAScript 2026
getOrInsert , getOrInsertComputed for map and weak map
Map.prototype.getOrInsertMap.prototype.getOrInsertComputedWeakMap.prototype.getOrInsertWeakMap.prototype.getOrInsertComputed
Float16Array
ai answer
Key New Features
Here's a summary of the main additions:
- Array.fromAsync
- Creates an array from an async iterable (e.g., streams, paginated APIs).◆
const arr = await Array.fromAsync(asyncIterable);
- Math.sumPrecise
- Sums numbers while minimizing floating-point precision loss (better for financial/math-heavy code).◆
Handles varying magnitudes more accurately than manual
reduce.
- Uint8Array Base64 & Hex methods
- Native
toBase64(),fromBase64(), hex conversions (and similar).◆ No morebtoa/atobhacks or third-party libs for binary data.
- Iterator.concat (and related sequencing)
- Lazily concatenates multiple iterators. Also includes helpers like
Iterator.zip.◆ Clean lazy data pipelines without unnecessary arrays.
- Error.isError
- Reliable way to check if something is truly an
Error(works across realms/iframes/workers).◆ Fixesinstanceof Errorpitfalls.
- JSON improvements
- Reviver access to source text in
JSON.parse;JSON.rawJSONfor betterstringifycontrol.◆ Safer handling of large numbers and precise JSON round-tripping.
Other Notable Mentions (Depending on Exact Cutoff)
Some sources also reference features that reached Stage 4 around the same time or were expected:
- Iterator helpers (
.map(),.filter(),.take(), etc. on iterators) Promise.try()RegExp.escape()- Float16 support (
Float16Array,Math.f16round) - In some reports: progress toward Temporal (modern
Datereplacement) and explicit resource management (using/await using)
JavaScript. ECMAScript New Features
- JS: ECMAScript New Features. 2015 to 2026
- JS: ECMAScript 2015
- JS: ECMAScript 2016
- JS: ECMAScript 2017
- JS: ECMAScript 2018
- JS: ECMAScript 2019
- JS: ECMAScript 2020
- JS: ECMAScript 2021
- JS: ECMAScript 2022
- JS: ECMAScript 2023
- JS: ECMAScript 2024
- JS: ECMAScript 2025
- JS: ECMAScript 2026
- JS: ECMAScript 2027