Skip to content

Instantly share code, notes, and snippets.

@guigmaster
Created August 29, 2013 12:42
Show Gist options
  • Save guigmaster/6377569 to your computer and use it in GitHub Desktop.
Save guigmaster/6377569 to your computer and use it in GitHub Desktop.
Implementation of the function to inArray the array object
Array.prototype.inArray = function (value)
{
var i;
for (i=0; i < this.length; i++)
{
if (this[i] == value)
{
return true;
}
}
return false;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment