Skip to content

Instantly share code, notes, and snippets.

@Veejay Veejay/detect.js
Created Nov 13, 2012

Embed
What would you like to do?
detect
_.detect(collection, function(item) {
// conditions here
},
{
one: function(item) {
// function to execute when one item is found
},
none:function(){
// function to execute when no item is found
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.