Let f and g be two function. Then f() || g() first evaluates f. If the return value of f is falsy it then evaluates g, and returns g‘s return value.
I love the neat and concise syntax, but it doesn’t include the case where f returns the empty array [], which I want to consider “falsy”.
Is there clean way of having this syntax for [] instead of the traditional falsy values?
You could write a function that converts the empty array into a real falsy value, maybe?