A comprehensive overview of JavaScript features introduced in recent ECMAScript versions, covering ES2025 down to ES2017. Key additions include import attributes for JSON modules, iterator helper methods for functional programming, new Set operations (union, intersection, difference), RegExp.escape() for safer regex construction, Promise.try() for better async handling, and Float16Array support. The guide also covers array methods like toReversed() and toSorted() for immutable operations, enhanced regular expressions with pattern modifiers and duplicate named capture groups, and various utility improvements across promises, strings, and object manipulation.
Table of contents
6.1 New in ECMAScript 20256.2 New in ECMAScript 20246.3 New in ECMAScript 20236.4 New in ECMAScript 20226.5 New in ECMAScript 20216.6 New in ECMAScript 20206.7 New in ECMAScript 20196.8 New in ECMAScript 20186.9 New in ECMAScript 20176.10 New in ECMAScript 20166.11 Source of this chapterSort: