Npm packages are extremely useful for creating reusable pieces of code or for sharing your work with other developers.
I started writing this series of posts about new javascript features during the 2020 quarantine. Now it’s 2021 and there are still severe restrictions in Italy. This list is undoubtedly the most strict for you. So let’s start with the features of ES2021:
Let’s say we have a nested javascript Object, and we want to convert it in Array in a modern way. For example a list of Tarantino’s movies, rated by my unquestionable judgment:
With ES6 and the arrow functions it has become very easy to control the value of the this keyword in javascript. But in the past managing the this scope was a real nightmare.
This is the second and final piece of the series dedicated to Es2020. Here you can find the first part where we talked about Dynamic import, BigInt and Module namespace exports. Let’s go ahead.
2020 is not precisely a beautiful year, for Italy in particular but also for the rest of the world, we are quarantined because of the Coronavirus hoping it will end soon. But this 2020 did not bring us only bad news, Es2020 is out with new interesting features. Let’s see them together:
For the most part, programming means managing data. A lot of data. This job is mostly about assembling and disassembling objects, joining them, dividing them, passing them on to functions.