Check if variable is 'undefined' or 'null'

to check if javascript variable is undefined or nul use :

      if(typeof variable_here === 'undefined'){
         // your code here.
      };

OR :

     if(! variable_here){
        // your code here.
     };

Comments

Popular posts from this blog

OCR text detection with google APIs C#

The specified version string contains wildcards, which are not compatible with determinism.

How to set dynamically height/width of an external image in rdlc report?