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;
};
| file: /techref/language/JAVA/SCRIPT/arrayat.htm, 0KB, , updated: 2005/12/9 15:38, local time: 2008/8/28 07:49,
38.103.63.61:LOG IN
|
| ©2008 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? Please DO link to this page! Digg it! <A HREF="http://techref.massmind.org/techref/language/JAVA/SCRIPT/arrayat.htm"> JScript / JavaScript Extension Feature</A> |
| Did you find what you needed? |
Welcome to massmind.org! |
|
.