Quantcast
Viewing all articles
Browse latest Browse all 6517

Commented Task: Improve Undefined Tests [10121]

@HughAJWood: People DO NOT DO if (id != undefined) DO if (typeof(id) !== 'undefined') #JavaScript #WriteGoodCode

Original Message:
http://twitter.com/HughAJWood/status/298422582011654144

Sent from HootSuite for iPhone
http://ow.ly/7trFE

Comments: For consistency, all undefined checks are now in the form typeof variable === "undefined" This is consistent with the JavaScript Style Guide Matt posted here and reliable.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>