HomeLinuxECMAScript 2023 Spec for JavaScript Contains New Strategies for Arrays

ECMAScript 2023 Spec for JavaScript Contains New Strategies for Arrays


4 new capabilities are deliberate for the JavaScript specification’s subsequent replace, reviews InfoWorld. Primarily based on an inventory of completed proposals, InfoWorld expects the next in ECMAScript 2023:


Array discover from final, a proposal for .findlast() and .findLastIndex() strategies on array and typed array…

Allowing symbols as keys in WeakMap keys, a proposal that extends the WeakMap API to permit using distinctive symbols as keys. At present, WeakMaps are restricted to permit solely objects as keys.

Change array by copy, a proposal that gives further strategies on Array.prototype and TypedArray.prototype to allow adjustments on the array by returning a brand new copy of it with the change.

Hashbang grammar, a proposal to match the de facto utilization in some CLI JS hosts that enable for Shebangs/Hashbang. These hosts strip the hashbang to generate legitimate JS supply texts earlier than passing to JS engines. This plan would transfer the stripping to engines and unify and standardize how that’s executed.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments