title: fastest way to go through JSON object in Javascript
body: <p>I have an array of JSON-like object<code>[Object,Object...]</code> (I was calling it array of JSON object until I see <a href="http://benalman.com/news/2010/03/theres-no-such-thing-as-a-json/" rel="nofollow">this</a> ) and I would like to go through each item in it. The JSON object has 3 values <code>{name:"name",date:"2015-01-01",c:3}</code> in it and I want to put each of them into a new array. Should I use a <code>for item in JSONArary{item = ...}</code> or <code>for (i=0,i&lt;len,i++){array[i] = ....}</code> or should I <code>JSONArray.pop()</code>? Which one is faster and why? What if I want to reverse the array? Do reversing cost a lot?</p>