Created
October 20, 2016 12:07
-
-
Save anonymous/ec677833bad9763cbd2a8be5911ac1ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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