title: Do all browsers have local storage?
body: <p>I wanted to know if it's necessary to do a check if local storage is present or not when I try to use it. </p>
  
  <p>Ie, I have this as a check:</p>
  
  <pre><code>  if (global.localStorage) {
      global.localStorage.setItem('layout', JSON.stringify({
        [key]: value
      }));
    }
  </code></pre>
  
  <p>Or can I use localStorage without this check? </p>