cleaning up redundant javascript
Jul 26, 2021
as we popularly know, Brendon Eich was tasked to develop javascript within a very short span of time — he took 10 days to be exact.
therefore one can’t expect much of advanced language structs & syntactic sugar like the famous object oriented languages such as java can offer out of the box or even PHP — hyper text preprocessor for that matter.
As a result extensions such as ES6 and beyond have come for the rescue. They address much of such missing pieces in Javascript.
Here I have listed some of my favourite techniques to declutter without compromising on readability.