ECMAScript 2021 adds the replaceAll() and promise.any() methods. The replace all() method works exactly like replace() but applies to all occurrences in the string. promise.all() lets you observe all promises that resolved in a collection, even if there were intervening errors.
Table of contents
String.prototype.replaceAllpromise.any()AggregateErrorNew logical assignment operatorsWeakRefFinalizationRegistryNumeric literal separatorsArray.prototype.sort improvementsSort: