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