if(!Array.prototype.myEach){
Array.prototype.myEach=function(callback,thisArg){varT,k;
console.log("this===",this,thisArg)if(this===null){thrownewTypeError('this is null or not defined');}varO=Object(this);
console.log("O===",O,O.length >>>0)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++;}}}let a =[1,2,3,4];
a.myEach((value,index)=>{
console.log(value,index)})
forEachif(!Array.prototype.myEach){ Array.prototype.myEach = function(callback,thisArg){ var T ,k; console.log("this===",this,thisArg) if(this === null){ throw new TypeError('this is null or not defined'); } var O = Object(this); consol