/ Published in: JavaScript
Expand |
Embed | Plain Text
if(!Array.indexOf){ Array.prototype.indexOf = function(obj){ for(var i=0, len=this.length; i<len; i++){ if(this[i]==obj){ return i; } } return -1; } }
You need to login to post a comment.
