News

ECMAScript 2021 highlights include replaceAll(), promise.any(), AggregateError, and new logical assignment operators, for starters. Let’s dive in.
String.prototype.matchAll. The ES11 spec adds a new method to the String prototype: matchAll. This method applies a regular expression to the String instance and returns an iterator with all the hits.