if(!Array.prototype.forEach ){Array.prototype.forEach=functionforEach( callback, thisArg ){varT, k;if(this==null){thrownewTypeError("this is null or not defined");}varO=Object(this);var len =O.length >>>0;if(typeof callback !=="function"){thrownewTypeError( callback +" is not a function");}if( arguments.length >1){T= thisArg;}k =0;while( k < len ){var kValue;if( k inO){kValue =O[ k ];callback.call(T, kValue, k,O);}k++;}}; }