tab-icon

Blog: 5 JavaScript features you (probably) haven’t used

×

5 JavaScript features you (probably) haven’t used

The 2022 The State of JavaScript survey came out a few weeks ago. The survey has proven to be a fascinating litmus test of where JavaScript is headed, as well as a breeding ground for developers to vent their frustration towards Angular.

JS Framework Popularity Chart
Google — please shutdown Angular like you do with all your other projects

One particularly interesting section highlights new(ish) JavaScript features which many developers haven’t used or haven’t heard of. If you are reading this, chances are, you probably don’t know some of these features either (don’t worry, me too).

Temporal
Nani??

So, instead of being intimidated by new tools and terminology (I certainly am!), I’ll aim to give you a TLDR (too long; didn’t read) version of 5 lesser-known features in JavaScript.

5. Promise.allSettled() (37.7% never heard of it)

Promise.allSettled() is a static method that accepts an iterable (e.g. array) of promises. Example below:

Hello there

I'm Peter Kwan

It looks like you are viewing my site on a tablet or mobile device

Please view my site on a desktop computer* to get the full experience

*Screen pixel width should be at least 1024px