Created
August 29, 2013 12:42
-
-
Save guigmaster/6377569 to your computer and use it in GitHub Desktop.
Implementation of the function to inArray the array object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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