On April 15, 2025 at 13:48

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.