Es2021

ECMAScript2021 adds new features WeakRef and FinalizationRegistry

ECMAScript2021 introduces new features WeakRef and FinalizationRegistry to manage garbage collection.

ECMAScript 2021 introduces Promise.any() and AggregateError

ECMAScript 2021 introduces Promise.any() method which accepts an iterable of promises and waits for the first promise to fulfill, and its result becomes the outcome. If all the passed promises are rejected, it returns an AggregateError.

ECMAScript 2021 introduces replaceAll method and numeric separators

ECMAScript 2021 introduces the replaceAll() method to replace all occurrences of a substring in a string with another string and numeric separators to allow a separator character between digits.

ES 12/2021 introduces new logical assignment operators

ES 12/2021 introduces new logical assignment operators for nullish(??=), AND(&&=) and OR(||=).