title: How to check if a value exists in an object using JavaScript
body: <p>I have an object in JavaScript:</p>
  <pre><code>var obj = {
     &quot;a&quot;: &quot;test1&quot;,
     &quot;b&quot;: &quot;test2&quot;
  }
  </code></pre>
  <p>How do I check that test1 exists in the object as a value?</p>