title: how to check if a value of a known index of an object found in another object exist
body: <p>Lets say I have the following object</p>
  
  <pre><code>var myObject = {
   index1: {
      indexsub1: index1value1,
      indexsub2: index1value2,
   },
   index2: {
      indexsub1: index2value1,
      indexsub2: index2value2,
   },
   index3: {
      indexsub1: index3value1,
      indexsub2: index3value2,
   },
  }
  </code></pre>
  
  <p>How can I check if there exist an indexsub1 in myObject where the value is x without knowing the index1, index2, and index3.</p>