title: Unexpected token: u JSON.parse() issue
body: <p>I have read online that the unexpected token u issue can come from using JSON.parse(). On my iPhone 5 there is no problem, but on my Nexus 7 I get this sequence of errors:</p>
  
  <p><img src="https://i.stack.imgur.com/AkUJ7.png" alt="enter image description here">
  <a href="https://i.stack.imgur.com/AkUJ7.png" rel="noreferrer">View large</a></p>
  
  <p>I realize this is a duplicate, but I am not sure how to solve this for my specific problem. Here is where I implement JSON.parse()</p>
  
  <pre><code> $scope.fav = []; 
  
  if ($scope.fav !== 'undefined') {
     $scope.fav = JSON.parse(localStorage["fav"]);
  }
  </code></pre>