title: Typescript Iterate using map and get key, value and delete item using index
body: <p>Consider I've this:</p>
  
  <pre><code>let users = {
      "user1": { "fname" : "fname1", "lname" : "lname1"},
      "user2": { "fname" : "fname2", "lname" : "lname2"},
      "user3": { "fname" : "fname3", "lname" : "lname3"}
   };
  </code></pre>
  
  <p><strong>Problem 1:</strong></p>
  
  <p>I want to iterate over it, somewhat like this(I need both key and value):</p>
  
  <pre><code>users.map(function(key, value) {
         //use key,value here...
     }
  }
  </code></pre>
  
  <p><strong>Problem 2:</strong></p>
  
  <p>And I want to remove item from "users" maybe like:</p>
  
  <pre><code>users.filter(index =&gt; index !== i) //this will remove item at i-th index
  </code></pre>
  
  <p>How to perform this in typescript? Or are there any other better solutions...</p>