title: Checking undefined value not working?
body: <p>I have the following javascript code:</p>
  
  <pre><code>var currentIds = localStorage.getItem('currentPairsIds');
  
  if ((typeof currentIds === "undefined") ||
      (currentIds == null))
          $.myNameSpace.currentIDs = new Array(3);
      else
          $.myNameSpace.currentIDs = currentIds.Split(',');
  </code></pre>
  
  <p>I'm debugging with Firebug and although <code>currentIds</code> hasn't got any value it always executes <code>else</code> statement.</p>
  
  <p><strong>UPDATE:</strong> <br/><br/> I'm getting this value from HTML5 storage.</p>
  
  <p>What am I doing wrong?</p>