JS: ECMAScript 2026

By Xah Lee. Date: . Last updated: .

getOrInsert , getOrInsertComputed for map and weak map

new methods

also in weakmap.

Float16Array

Float16Array

Math.sumPrecise

Math.sumPrecise

Sums numbers while minimizing floating-point precision loss

console.log(Math.sumPrecise([3, 4, 5]));
// 12

Iterator.concat

Iterator.concat

concatenates iterators

Iterator.zip

Iterator.zip

(ai answer)

Key New Features

Array.fromAsync

Creates an array from an async iterable (e.g., streams, paginated APIs).◆ const arr = await Array.fromAsync(asyncIterable);

Uint8Array Base64 & Hex methods

Native toBase64(), fromBase64(), hex conversions (and similar).◆ No more btoa/atob hacks or third-party libs for binary data.

Error.isError

Reliable way to check if something is truly an Error (works across realms/iframes/workers).◆ Fixes instanceof Error pitfalls.

JSON improvements

Reviver access to source text in JSON.parse; JSON.rawJSON for better stringify control.◆ 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:

Reference