form-cheatsheet/js/polyfills/EcmaScript/Array.prototype.forEach.js

2 lines
347 B
JavaScript

Array.prototype.forEach=function(c,f){var d,a;if(!this)throw new TypeError(" this is null or not defined");var b=Object(this),g=b.length>>>0;if("function"!==typeof c)throw new TypeError(c+" is not a function");1<arguments.length&&(d=f);for(a=0;a<g;){var e;a in b&&(e=b[a],c.call(d,e,a,b));a++}};
//# sourceMappingURL=Array.prototype.forEach.js.map