My Top 5 JavaScript Tips & Tricks for Writing Cleaner Code
1. Destructuring Assignment
Destructuring assignment allows one or more object properties to be assigned to variables in a single expression. The created variable will have the same name as the property.
let myObj = {
id: 1,
name: 'My Object'
};
...
samwalpole.com7 min read