/ Published in: JavaScript
Based on some comments in StackOverflow Question
Expand |
Embed | Plain Text
if(typeof(foo) !== 'undefined' && foo != null) { //you can use foo! }
You need to login to post a comment.
jasonseney on 04/30/09
3 people have marked this snippet as a favorite
Based on some comments in StackOverflow Question
if(typeof(foo) !== 'undefined' && foo != null) { //you can use foo! }
You need to login to post a comment.