defos

if (typeof x !== '' && x !== null) replacement

defos

Sugar for js: if (typeof x !== undefined && x !== null){ foo(x) }

To use with front end scripts:

ender add defos

To use with nodejs

npm install defos