ECMAScript 2023 Spec for JavaScript Includes New Methods for Arrays - Slashdot
source link: https://developers.slashdot.org/story/23/04/08/2317223/ecmascript-2023-spec-for-javascript-includes-new-methods-for-arrays
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
ECMAScript 2023 Spec for JavaScript Includes New Methods for Arrays
Follow Slashdot stories on Twitter
binspamdupenotthebestofftopicslownewsdaystalestupid freshfunnyinsightfulinterestingmaybe offtopicflamebaittrollredundantoverrated insightfulinterestinginformativefunnyunderrated descriptive typodupeerror
Sign up for the Slashdot newsletter! or check out the new Slashdot job board to browse remote jobs or jobs in your area
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.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK