ES9
ECMAScript 9, commonly referred to as ECMAScript 2018, is the ninth edition of the ECMAScript language specification. Published in 2018 by Ecma International, it follows ES8 (2017) and introduces a set of practical features aimed at simplifying common JavaScript tasks, including object manipulation, asynchronous programming, and enhanced regular expressions.
Object rest/spread properties were added to simplify object composition and data extraction. Rest properties collect the
Asynchronous iteration introduces the for-await-of loop and the AsyncIterable protocol, enabling native-style iteration over data sources
Promise.prototype.finally provides a cleanup callback that runs when a promise settles, regardless of its outcome, allowing
RegExp improvements include lookbehind assertions, which allow patterns to reference preceding text without including it in
Support for ES9 features varies by platform, but modern JavaScript engines and environments broadly implement these