JS: ECMAScript 2020
Variable for the global object, globalthis
Nullish Coalescing Operator
Optional Chaining Operator
String.prototype.matchAll
easier way to get all matches and all captures.
Order of Properties
bigint
xtodoA new number primitive for working with arbitrary precision integers.
const x = 10n; console.log( typeof x === "bigint" ); // true
Dynamic import, the import() syntax
xtodonew syntax: import *
import * as xyz from "./xyz.js";
new syntax: export *
xtodoDedicated export * as ns from 'module' syntax for use within modules.
import.meta
xtodoimport.meta, a host- populated object available in Modules that may contain contextual information about the Module.
export {abc} from "./xyz.js"; export * from "./xyz.js";
Promise.allSettled
xtodoA new Promise combinator that does not short-circuit.
Order of for-in loop
Increased standardization of for-in enumeration order.