🔰destructuring arguments
🚧 under construction -> merge
Last updated
Was this helpful?
🚧 under construction -> merge
Last updated
Was this helpful?
Was this helpful?
JS ⟩ operator ⟩ assignment ⟩ destructuring ⟩ arguments
👉 See: object destructuring for more info.
const {log} = console;
// function parameter by object destructuring
function f ({
hi = 2, // default param
...options // other params as an object ⭐️
}={}) {