{"id":1473,"date":"2023-05-01T05:11:39","date_gmt":"2023-05-01T04:11:39","guid":{"rendered":"https:\/\/mobifeverlabs.in\/?p=1473"},"modified":"2023-05-01T05:12:34","modified_gmt":"2023-05-01T04:12:34","slug":"ecmascript-2023-spec-for-javascript-adds-methods-for-arrays","status":"publish","type":"post","link":"https:\/\/mobifeverlabs.in\/index.php\/2023\/05\/01\/ecmascript-2023-spec-for-javascript-adds-methods-for-arrays\/","title":{"rendered":"ECMAScript 2023 spec for JavaScript adds methods for arrays"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1473\" class=\"elementor elementor-1473\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-913ed9c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"913ed9c\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-ff67387\" data-id=\"ff67387\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-18ff637 elementor-widget elementor-widget-image\" data-id=\"18ff637\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.12.2 - 23-04-2023 *\/\n.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=\".svg\"]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}<\/style>\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"810\" height=\"455\" src=\"https:\/\/mobifeverlabs.in\/wp-content\/uploads\/2023\/05\/code-html-digital-1076536-1024x575.jpg\" class=\"attachment-large size-large wp-image-1476\" alt=\"code, html, digital-1076536.jpg\" loading=\"lazy\" srcset=\"https:\/\/mobifeverlabs.in\/wp-content\/uploads\/2023\/05\/code-html-digital-1076536-1024x575.jpg 1024w, https:\/\/mobifeverlabs.in\/wp-content\/uploads\/2023\/05\/code-html-digital-1076536-300x169.jpg 300w, https:\/\/mobifeverlabs.in\/wp-content\/uploads\/2023\/05\/code-html-digital-1076536-768x431.jpg 768w, https:\/\/mobifeverlabs.in\/wp-content\/uploads\/2023\/05\/code-html-digital-1076536.jpg 1280w\" sizes=\"(max-width: 810px) 100vw, 810px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-67469bb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"67469bb\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5df7f3e\" data-id=\"5df7f3e\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b449021 elementor-widget elementor-widget-text-editor\" data-id=\"b449021\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.12.2 - 23-04-2023 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p><a href=\"https:\/\/tc39.es\/ecma262\/2023\/\" rel=\"nofollow\">ECMAScript 2023<\/a>, the next planned update to the official specification for the\u00a0<a href=\"https:\/\/www.infoworld.com\/article\/3441178\/what-is-javascript-the-full-stack-programming-language.html\">JavaScript programming language<\/a>, is slated to add four capabilities in areas such as arrays and WeakMap keys, based on a list of finished proposals.<\/p><p>The\u00a0<a href=\"https:\/\/github.com\/tc39\/proposals\/blob\/main\/finished-proposals.md\" rel=\"nofollow\">finished proposals<\/a>, published by the ECMA TC39 (Technical Committee 39) on GitHub, mark the following four features to be published this year:<\/p><ul><li><a href=\"https:\/\/github.com\/tc39\/proposal-array-find-from-last\" rel=\"nofollow\">Array find from last<\/a>, a proposal for\u00a0<code>.findlast()<\/code>\u00a0and\u00a0<code>.findLastIndex()<\/code>\u00a0methods on array and typed array. Finding an element in an array is a very common programming pattern, the proposal states. Scenarios under which this feature would be used include when a developer knows that finding an element from last to first may have better performance, or developers care about the order of the elements.<\/li><li><a href=\"https:\/\/github.com\/tc39\/proposal-symbols-as-weakmap-keys\" rel=\"nofollow\">Permitting symbols as keys in WeakMap keys<\/a>, 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.<\/li><li><a href=\"https:\/\/github.com\/tc39\/proposal-change-array-by-copy\" rel=\"nofollow\">Change array by copy<\/a>, a proposal that provides additional methods on\u00a0<code>Array.prototype<\/code>\u00a0and\u00a0<code>TypedArray.prototype<\/code>\u00a0to enable changes on the array by returning a new copy of it with the change.<\/li><li><a href=\"https:\/\/github.com\/tc39\/proposal-hashbang\" rel=\"nofollow\">Hashbang grammar<\/a>, a proposal to match the de facto usage in some CLI JS hosts that allow for\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Shebang_(Unix)\" rel=\"nofollow\">Shebangs\/Hashbang<\/a>. 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 standardise how that is done.<\/li><\/ul><div><div id=\"gpt-ad-interscroller-9151482\" class=\"gpt-ad\" data-gpt-ad-unit-path=\"\/8456\/IDG.AU_B2B_Reseller.co.nz\/software_section\" data-gpt-size-mapping=\"[[[0, 0], [[3, 3]]]]\" data-gpt-sizes=\"[[3, 3]]\" data-gpt-targeting=\"{&quot;node&quot;: [&quot;706573&quot;], &quot;idgau_tax&quot;: [&quot;news&quot;], &quot;site&quot;: [&quot;nzrn&quot;], &quot;sect&quot;: [&quot;software&quot;], &quot;idgau_search_referrer&quot;: [&quot;no&quot;], &quot;type&quot;: [&quot;article&quot;]}\" data-google-query-id=\"CImQw9qc0_4CFVZJjwodDY4MaQ\"><div id=\"google_ads_iframe_\/8456\/IDG.AU_B2B_Reseller.co.nz\/software_section_1__container__\">\u00a0<\/div><\/div><\/div><p>Updated versions of ECMAScript traditionally are finalised by ECMA in June. Last year\u00e2\u20ac\u2122s\u00a0<a href=\"https:\/\/www.infoworld.com\/article\/3654830\/ecmascript-2022-blesses-class-elements-top-level-await.html\">ECMAScript 2022<\/a>\u00a0featured class elements and top-level await capabilities.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>ECMAScript 2023, the next planned update to the official specification for the\u00a0JavaScript programming language, is slated to add four capabilities in areas such as arrays and WeakMap keys, based on a list of finished proposals. The\u00a0finished proposals, published by the ECMA TC39 (Technical Committee 39) on GitHub, mark the following four features to be published [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1474,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/mobifeverlabs.in\/index.php\/wp-json\/wp\/v2\/posts\/1473"}],"collection":[{"href":"https:\/\/mobifeverlabs.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mobifeverlabs.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mobifeverlabs.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mobifeverlabs.in\/index.php\/wp-json\/wp\/v2\/comments?post=1473"}],"version-history":[{"count":4,"href":"https:\/\/mobifeverlabs.in\/index.php\/wp-json\/wp\/v2\/posts\/1473\/revisions"}],"predecessor-version":[{"id":1479,"href":"https:\/\/mobifeverlabs.in\/index.php\/wp-json\/wp\/v2\/posts\/1473\/revisions\/1479"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mobifeverlabs.in\/index.php\/wp-json\/wp\/v2\/media\/1474"}],"wp:attachment":[{"href":"https:\/\/mobifeverlabs.in\/index.php\/wp-json\/wp\/v2\/media?parent=1473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mobifeverlabs.in\/index.php\/wp-json\/wp\/v2\/categories?post=1473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mobifeverlabs.in\/index.php\/wp-json\/wp\/v2\/tags?post=1473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}