1var keys = ['a', 'b', 'c'],
2 values = [1, 2, 3],
3 associated = keys.reduce(function (previous, key, index) {
4 previous[key] = values[index];
5 return previous
6 }, {})
7
8console.log(associated) // Object {a: 1, b: 2, c: 3}