/ Published in: JavaScript
Expand |
Embed | Plain Text
/** helper to determine if a variable is defined */ function isDefined(foo) { return 'undefined' !== typeof(foo) && null != foo; }
You need to login to post a comment.
magna on 02/12/11
1 person have marked this snippet as a favorite
/** helper to determine if a variable is defined */ function isDefined(foo) { return 'undefined' !== typeof(foo) && null != foo; }
You need to login to post a comment.