Posted By

alvaroisorna on 09/19/07


Tagged

javascript


Versions (?)

JavaScript isDefined()


 / Published in: JavaScript
 

URL: http://kaedatorum.net/blog/

seen at: http://jehiah.cz/archive/javascript-isdefined-function

  1. /* method: isDefined
  2.  * use: if(!isDefined('i18n_text')){...}
  3.  */
  4. function isDefined(variable){
  5. return (typeof(window[variable]) == 'undefined')? false : true;
  6. }

Report this snippet  

You need to login to post a comment.