title: js / jquery: issue with object key called "length"
body: <p>An API I'm connecting with, gives me back an object. One of its keys/properties is called "length" and this triggers some strange behaviour:</p>
  
  <pre><code>var obj = {"text1":{"index":0,"lengt":5}}; //modified key for testing
  
  $.each(obj.text1,function(k,v){     
      console.log ('i: '+k+' v: '+v); });
  
  i: index v: 0  //this is the result I'm looking for
  i: lengt v: 5
  
  var obj = {"text1":{"index":0,"length":5}}; //original object 
  
  i: 0 v: undefined // ????
  i: 1 v: undefined 
  i: 2 v: undefined 
  i: 3 v: undefined 
  i: 4 v: undefined 
  </code></pre>
  
  <p>I assume <code>length</code> is a reserved word, but that's how the original object comes. What would be the best way to spot and skirt this issue?</p>
  
  <p>Much thanks for any assistance.</p>