title: Extract username from localStorage Typescript/JavaScript
body: <p>I m still new with Typescript, i want to output only <strong>username</strong> from this localStorage:</p>
  
  <pre><code>localStorage.getItem('currentUser')
  </code></pre>
  
  <p>which currently outputing:
  {"<strong>username</strong>":"root","<strong>password</strong>":"root"}</p>
  
  <p>How can i do it ?</p>