Skip to content

Instantly share code, notes, and snippets.

@ivoputzer
Created October 16, 2015 12:51
Show Gist options
  • Save ivoputzer/6cd075c888de5afe5ab2 to your computer and use it in GitHub Desktop.
Save ivoputzer/6cd075c888de5afe5ab2 to your computer and use it in GitHub Desktop.
combine.js
module.exports = (keys, values) -> keys.reduce ((p, v, i) -> p[v] = values[i]; p), {}
module.exports = function(keys, values) {
return keys.reduce(function(p, v, i){
return p[v] = values[i], p
}, {})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment