DEV Community

Manu Krishnan
Manu Krishnan

Posted on

JS tips - Operator which can detect null and undefined but no other falsy values like zero,false, empty string in javascript

In one word its a very simple solution, i.e. Nullish coalescing operator (??)

Top comments (0)