4 ms·That one makes a bit of sense in Javascript as it'd return null if foo was null OR undefined.by sebastianmck 13y agoThat one makes a bit of sense in Javascript as it'd return null if foo was null OR undefined.surreal 13y agoIt might be technically correct, but if the intention was a loose comparison surely don't include null in the comparison? return !foo ? null : foo;surreal 13y ago... or return foo || null; if you're into that sort of thing