title: Iterate thru Hashtable while checking each key, value pair Javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/85992/how-do-i-enumerate-the-properties-of-a-javascript-object">How do I enumerate the properties of a javascript object?</a>  </p>
  </blockquote>
  
  
  
  <p>I"m trying to iterate thru a hashtable. But I need to check the values each time I run through it.  </p>
  
  <p>How would I use a foreach table to do this?  in sudo code I'd like to do this:</p>
  
  <pre><code>var tHash = {
   name: n,
   date: d,
   labels: l,
  }
  
  foreach(value in tHash){
     if(tHash.name== somevalue){do something};
     if(tHash.label == somevalue) {do something};
  </code></pre>
  
  <p>That's essentially what I'd like to do but not real sure how to start it out.</p>
  
  <p>Edit:  The isn't just one hash it's an array of hashes...I should've mentioned that at the beginning the way I put the code is the way I was loading the array of hashes with a for loop.</p>