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.
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).
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.
Promise.allSettled() is a static method that accepts an iterable (e.g. array) of promises. Example below:
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