It is tempting to use default positive values for object properties. This can make the code more readable when in most cases the value should be positive. However it is easy to accidentally pass undefined for the value. That then makes the value the function sees true. So now the function behaves the opposite way you probably intended when you called it.
More details here:
function doSomething({enabled = true}) {
console.log("enabled", enabled);
}
const check = true;
const valueThatMightBeDefined = undefined;