var r = document.getElementById("r"); r.innerHTML = _.keys({one: 1, two: 2, three: 3}); // => ["one", "two", "three"]