Вы можете использовать Lodash. Документация
var obj = {a: 1, b: 2, c: 3}; _.keys(obj).forEach(function (key) { ... });