var r = document.getElementById("r"); _.each([1, 2, 3], function(i) { r.innerHTML += i + '
'; }); // => 1
// => 2
// => 3
var r2 = document.getElementById("r2"); _.each({one: 1, two: 2, three: 3}, function(key, value) { r2.innerHTML += key + ': ' + value + '
'; }); // => 1: one
// => 2: two
// => 3: three