title: javascript check to see if value matches object
body: <p>I have a javascript object</p>
  
  <pre><code>var obj = {
      "0" : "apple",
      "1" : "pear",
      "2" : "orange"
  }
  </code></pre>
  
  <p>I want to check if 'orange' is in obj.</p>
  
  <p>Is there a built in function that does this? Or should I iterate over each value of obj?</p>
  
  <p>Thanks.</p>