title: How to pass a simple array data in ngStorage,$localstorage?
body: <p>So lets say I want to define an <code>var array=['a','b','c']</code></p>
  
  <p>How do I pass this array into localStorage ?</p>
  
  <p>Should I just simply write <code>$localStorage.data = array;</code>?</p>
  
  <p>And also how to check if that array <code>$localStorage.data</code> is not empty and not undefined?</p>