ECMAScript 2023 (ES14)
ECMAScript 2023 (ES14) — ES2023 focused on Array find from last, hashbang support, and weak reference improvements. Array.prototype.findLast(): Returns the last element matching a condition. Example: [1,2,3,4].findLast(n => n % 2 === 0) // 4. Array.prototype.findLastIndex(): Returns the index of the last matching element. Example: [1,2,3,4].findLastIndex(n => n % 2 === 0) // 3. Hashbang support: Native support for #! shebang in JS files. Example: #!/usr/bin/env node. Symbols as WeakMap keys: Symbols can now be used as keys in WeakMaps. Example: const wm = new WeakMap(); wm.set(Symbol("id"), 1). In total, ES2023 added 4 documented features to the language. Compare with the other editions on the ECMAScript versions page.