title: Condition for dictionary key-value in Typescript
body: <p>I have a dictionary :</p>
  <pre><code>dict = {
  
  &quot;a&quot;: 1,
  &quot;b&quot; : 2
  
  }
  
  </code></pre>
  <p>I need to implement a condition that returns true if &quot;a&quot; is 1 and &quot;b&quot; is 2 and so on if I'm to add more key-value pairs.</p>
  <p>How should I approach this?
  I searched and found <code>Object.keys()</code> and <code> Object.values()</code>  but I'm not sure about how to logically do this</p>