JScript / JavaScript Extension Feature

Array.At(exp)

Find an entry in an array by value.

Array.prototype.At = function (value) {
	var i;
	for (i=0; i < this.length; i++) {
		if (this[i] === value) {
			return i;
			}
		}
	return -1;
	};

See also: