title: JavaScript for in loop, but in reverse?
body: <p>Taking a JavaScript object with 4 properties:</p>
  
  <pre><code>function Object() {
    this.prop1;
    this.prop2;
    this.prop3;
    this.prop4;
  }
  
  var obj = new Object();
  </code></pre>
  
  <p>I use a for(in) loop to inspect each property since I don't know the number or name of the properties:</p>
  
  <pre><code>for(property in obj) {
    var prop = obj[property];
  }
  </code></pre>
  
  <p>However I would like to process the properties starting with the last (prop4 in this example).  I suppose I would like a reverse-for-in-loop.</p>
  
  <p>How can I do this?</p>
  
  <p>Thanks,
  Jack</p>
  
  <p>Adding: The object I am referring to is the one returned from JSON.parse. The properties seem to be consistently ordered. There is no keys() method.</p>