Skip to content

Instantly share code, notes, and snippets.

@benaston
Created March 28, 2014 19:06

Revisions

  1. Ben Aston created this gist Mar 28, 2014.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    return _bookmarks.map(function (a) {
    return _.any(a, function (i) {
    return i === id;
    });
    }).reduce(function (prev, curr) {
    return prev || curr;
    });