// indexOf
Array.prototype.indexOf = function(e){ for(var i=0,j; j=this[i]; i++){ if(j==e){return i;} } return -1; }
// delete
Array.prototype.remove = function(from, to) { var rest = this.slice((to || from) + 1 || this.length); this.length = from < 0 ? this.length + from : from; return this.push.apply(this, rest); };
// unquie
Array.prototype.unquie=function(){ var newArray=new Array(); var len=this.length; for (var i=0;i<len ;i++){ for(var j=i+1;j<len;j++){ if(this[i]===this[j]){ j=++i; } } newArray.push(this[i]); } return newArray; }