Let's suppose actions is defined but how do I access this first and second boolean inside someFunction?
is this an object or some kind of destructuring? cause I am getting a some kind of destructuring error.
function someFunction(actions, { first = true, second= false }) {
if(first == true) {
console.log("something");
}
}
Error i get -
TypeError: Cannot read property 'first ' of undefined