title: Partially hide email address in TypeScript(Javascript)
body: <p>I am using <strong>TypeScript(Javascript)</strong></p>
  
  <p>How can I partially hide email address like this?</p>
  
  <ul>
  <li><p><code>jack.dawson@gmail.com</code> to <code>j*********n@g****.com</code></p></li>
  <li><p><code>rose.bukater@outlook.com</code> to <code>r**********r@o******.com</code></p></li>
  </ul>
  
  <p>I only found an <a href="https://stackoverflow.com/questions/20545301/partially-hide-email-address-in-php">answer</a> using PHP.</p>
  
  <p>Thanks</p>