ECMAScript 2023 Spec for JavaScript Includes New Methods for Arrays
Four new capabilities are planned for the JavaScript specification's next update, reports InfoWorld. Based on a list of finished proposals, InfoWorld expects the following in ECMAScript 2023: - Array find from last, a proposal for .findlast() and .findLastIndex() methods on array and typed array... - Permitting symbols as keys in WeakMap keys, a proposal that extends the WeakMap API to allow the use of unique symbols as keys. Currently, WeakMaps are limited to allow only objects as keys. - Change array by copy, a proposal that provides additional methods on Array.prototype and TypedArray.prototype to enable changes on the array by returning a new copy of it with the change. - Hashbang grammar, a proposal to match the de facto usage in some CLI JS hosts that allow for Shebangs/Hashbang. These hosts strip the hashbang to generate valid JS source texts before passing to JS engines. This plan would move the stripping to engines and unify and standardize how that is done.
from Slashdot https://ift.tt/pZbCGcT
Read more of this story at Slashdot.
from Slashdot https://ift.tt/pZbCGcT
0 Response to "ECMAScript 2023 Spec for JavaScript Includes New Methods for Arrays"
Post a Comment