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:
array.indexOf(value)
array.includes(value)
array.find( function(i,v) {return v.value === value;} )