Skip to content

Instantly share code, notes, and snippets.

@benaston
Created March 28, 2014 19:06
Show Gist options
  • Save benaston/9840598 to your computer and use it in GitHub Desktop.
Save benaston/9840598 to your computer and use it in GitHub Desktop.
map reduce
return _bookmarks.map(function (a) {
return _.any(a, function (i) {
return i === id;
});
}).reduce(function (prev, curr) {
return prev || curr;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment