#498·goja

Upgrade to latest version of ECMAScript 2021/ 2022

Author: ganeshkbhatCreated Apr 29, 2023Updated May 6, 2025

Thank you for writing this ast. Love you all for that. I am following you for this. Do you plan to updat this to latest versions of ECMA script? :-)

ES5	ECMAScript 5 (2009)

Added "strict mode"
Added JSON support
Added String.trim()
Added Array.isArray()
Added Array iteration methods
Allows trailing commas for object literals

ES6	ECMAScript 2015

Added let and const
Added default parameter values
Added Array.find()
Added Array.findIndex()

ECMAScript 2016

Added exponential operator (**)
Added Array.includes()

ECMAScript 2017

Added string padding
Added Object.entries()
Added Object.values()
Added async functions
Added shared memory
Allows trailing commas for function parameters

ECMAScript 2018

Added rest / spread properties
Added asynchronous iteration
Added Promise.finally()
Additions to RegExp

ECMAScript 2019

String.trimStart()
String.trimEnd()
Array.flat()
Object.fromEntries
Optional catch binding


ECMAScript 2020

The Nullish Coalescing Operator (??)

ECMAScript 2021

Promise any():
const first = await Promise.any([prom1,prom2,prom3]);
String replaceAll()
Numeric Separators (_)

ECMAScript 2022

Array Method at()
String Method at()
RegExp /d
Object.hasOwn()
error.cause
await import
Private methods and fields
Class field declarations