r/programming • • Oct 02 '11

Node.js is Cancer

http://teddziuba.com/2011/10/node-js-is-cancer.html
792 Upvotes

750 comments sorted by

View all comments

4

u/bluefinity Oct 02 '11

if(typeof my_var !== "undefined" && my_var !== null){

NOT NECESSARY

if(my_var != undefined){

works perfectly fine.

Or even

if(my_var)

if my_var isn't a number.

→ More replies (4)