title: TypeScript: Find Key / Value in Object (list comprehension?)
body: <p>How to do find <code>index==2</code> in TypeScript?</p>
  
  <pre><code>myObj = {
    policy : {
              index: 1,
              page : "/summer"
           },
    purchase : {
              index: 2,
              page : "/sun"
           }
  }
  </code></pre>
  
  <p>E.g.</p>
  
  <pre><code>for (var key in myObj) {
    if (myObj.hasOwnProperty(key)) {
      if (myObj[key].index === 2)
         console.log("Found.");
    }
  }
  </code></pre>
  
  <p>How to do this in JS or TS more efficiently?</p>