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.

6m read timeFrom infoworld.com
Post cover image
Table of contents
String.prototype.replaceAllpromise.any()AggregateErrorNew logical assignment operatorsWeakRefFinalizationRegistryNumeric literal separatorsArray.prototype.sort improvements

Sort: