Skip to content

Instantly share code, notes, and snippets.

Created October 20, 2016 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ec677833bad9763cbd2a8be5911ac1ce to your computer and use it in GitHub Desktop.
Save anonymous/ec677833bad9763cbd2a8be5911ac1ce to your computer and use it in GitHub Desktop.
function Reduce(key, values) {
var reduced = {item: []};
values.forEach(function(val) {
val.item.forEach(function(v) {
reduced.item.push(v)
});
});
return reduced;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment