I like to do this in JavaScript:
function (a, b, c) {
var foo = a || b || c;
return foo.bar;
}
Is there a quick way to do assignment with fallback or does it require a custom function
?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With