Responded to @kasparsd:
Destructuring with defaults 📜 ES6 (2015)
const { foo = 'default' } = {};
Sets the default value of foo to 'default' if the value isn't defined.
Responded to @kasparsd:
Destructuring with defaults 📜 ES6 (2015)
const { foo = 'default' } = {};
Sets the default value of foo to 'default' if the value isn't defined.