x == null matches undefined too
@narwhalix▲ 5 net votes
In JavaScript x == null is true for both null and undefined, a common idiom for checking "missing".
3 COMMENTS
Gamechanger
Detailed
Seamless
In JavaScript x == null is true for both null and undefined, a common idiom for checking "missing".
Gamechanger
Detailed
Seamless