-
-
Save anonymous/c6c036caa707dac10f20bb12684eede3 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 Map() { | |
var nameList = ["Male", "Married"] | |
var items = [] | |
this.items.forEach(function(val) { | |
if (nameList.indexOf(val.name) > -1) { | |
items.push(val) | |
} | |
}) | |
emit(this.fanId, {count: 1, item: items}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment