4 most important features coming in ES2022 that you should know about

Bartosz Salwiczek
3 min readFeb 1, 2022

ECMAScript 2022 is a new JavaScript standard that is going to be released in June 2022. Let’s overview the most important changes that would appear almost certainly in the new release as they reached the 4th stage of TC39 process.

TC39 are group of Javascript maintainers that accept and release new features. They have 4 stages process with 1 being just idea proposal and 4 ready to be released in new ECMAScript version. You can read more here.

1. Method at() in arrays

Finally! ES2022 will give us a possibility to index array-like objects from the end. That’s a tiny feature, but it improves core readability when dealing with arrays or strings.

At() method with positive number will work the same as indexing by [] , but with negative will allow accessing values from the end.

Instead of writing:

We would be able to write:

--

--

Bartosz Salwiczek

I write about Software Engineering. JS/TS/Node/Vue/React/Flutter. Get access to all my articles by joining Medium https://medium.com/@bsalwiczek/membership