Hacker News new | ask | show | jobs
by mmastrac 772 days ago
`||` is conventional in bash, but definitely not in JS. `x || value` is closer to conventional JS, but using it for control flow is certainly not common and a stylistic choice, for sure.