DRY - Don't Repeat Yourself is considered a best practice in programming. This applies while working on a single script as well as across multiple projects. ...
Destructuring was introduced in ES2015/ES6. It’s really helpful if you know all the ins and outs. There are many articles but they don't cover all the different ways to use Destructuring with one single example.
Complete Guide to Unpack Values from Arrays