Underscore.js Collections: Each
HTML
<script src="http://documentcloud.github.com/underscore/underscore-min.js"></script>
<a target="parent" href="http://underscorejs.org/#each">Learn More</a>
JavaScript
var arr = {one : 1, two : 2, three : 3};
_.each(arr, function(t,r,n){
console.log(t,r,n);
});