ECMAScript 2023 spec for JavaScript finalized
ECMAScript 2023, an update to the official specification for the JavaScript programming language, has been approved by ECMA International. The new spec adds new methods for searching and changing arrays, extends the WeakMap API to allow unique symbols, and introduces some standardization for the use of hashbangs.
Approved on June 27, the ECMAScript 2023 specification cites the following synopsis of improvements:
ECMAScript 2023, the 14th edition, introduced the
toSorted
,toReversed
,with
,findLast
, andfindLastIndex
methods onArray.prototype
andTypedArray.prototype
, as well as thetoSpliced
method onArray.prototype
; added support for#!
comments at the beginning of files to better facilitate executable ECMAScript files; and allowed the use of most Symbols as keys in weak collections.
Author: . [Source Link (*), InfoWorld]