3 ms·
How would this differ from the idiomatic "x || y"? Just s/non-zero/truthy
by strbean 7y ago
How would this differ from the idiomatic "x || y"? Just s/non-zero/truthy
- deleted 7y ago[deleted]
- nojvek 7y ago|| short circuits on falsey. 0, “”, false, null, undefined ?? Short circuits on nullish. Only null and undefined.