/ Published in: JavaScript
Expand |
Embed | Plain Text
Array.prototype.inArray = function (value) { var i; for (i=0; i < this.length; i++) { if (this[i] === value) { return true; } } return false; };
You need to login to post a comment.
iroybot on 07/11/10
3 people have marked this snippet as a favorite
Array.prototype.inArray = function (value) { var i; for (i=0; i < this.length; i++) { if (this[i] === value) { return true; } } return false; };
You need to login to post a comment.