Hacker News new | ask | show | jobs
by mmastrac 607 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.