Skip to content

Instantly share code, notes, and snippets.

@softprops
Created June 24, 2009 06:35
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 softprops/135056 to your computer and use it in GitHub Desktop.
Save softprops/135056 to your computer and use it in GitHub Desktop.
Array.prototype.include = function(val) {
for(var el in this) {
if(this[el] === val) {
return true;
}
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment