Object.combine = function (keys, values) { return keys.reduce(function (prev, v, i) { prev[v] = values[i]; return prev; }, {}); } Object.combine(['name', 'age'], ['Ivan', 33]) Object {name: "Ivan", age: 33}