title: Fetch localstorage value in array
body: <p>I am saving value in localstorage as shown below</p>
  
  <p><code>key</code> = profskill , <code>value</code> = "a,b,c"</p>
  
  <p>In my <code>test.ts</code> file, I have declared array but I am unable to fetch the result in it. Code shown below:</p>
  
  <pre><code> getskills: Array&lt;string&gt; = [];
  this.getskills  = localStorage.getItem("profskill");
  </code></pre>
  
  <p>but this is giving error:</p>
  
  <blockquote>
    <p>Type 'string' is not assignable to type 'string[]'</p>
  </blockquote>
  
  <p>I want to fetch value like this:</p>
  
  <p><code>console.log(this.getskills[0]);</code></p>