4 ms·
Probably because the Boolean operators in JS return the left or right side of the expression, rather than a Boolean. It was an okay-ish way to get a default/fa
by deergomoo 4y ago
Probably because the Boolean operators in JS return the left or right side of the expression, rather than a Boolean.
It was an okay-ish way to get a default/fallback value before JS got a proper coalescing operator.