Skip to content

Instantly share code, notes, and snippets.

@tracend
Created December 20, 2013 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tracend/8059783 to your computer and use it in GitHub Desktop.
Save tracend/8059783 to your computer and use it in GitHub Desktop.
inArray - Underscore mixin to find if a value exists in an array #cc #underscore
_.mixin({
inArray: function(value, array){
return array.indexOf(value) > -1;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment