This snippet will give you the InArray function for Javascript.
Sample Javascript
Array.prototype.InArray = function (input) { var i; for (i=0; i < this.length; i++) { if (this[i] === input) { return true; } } return false; };
This snippet will give you the InArray function for Javascript.
Array.prototype.InArray = function (input) { var i; for (i=0; i < this.length; i++) { if (this[i] === input) { return true; } } return false; };
This snippet will give you the IsArray function for Javascript.
Object.prototype.IsArray = function() { return this.constructor == Array; }