Utilising Destructuring Assignment and Default Parameters
Sometimes you need to extract one property from an object, and if that property doesn't exist, you need to return a default value. Traditionally »
Sometimes you need to extract one property from an object, and if that property doesn't exist, you need to return a default value. Traditionally »
ES6 has introduced a new way to declare variables, the let keyword. This means we now have two methods of declaring variables, var and let. But »