Showing 4 of 8 total issues
File array-shim.js
has 295 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
if (!this)
return;
// Production steps of ECMA-262, Edition 5, 15.4.4.18
Function reduce
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.reduce =function(callback /*, initialValue*/) {
if (this === null) {
throw new TypeError( 'Array.prototype.reduce ' +
'called on null or undefined' );
}
Avoid deeply nested control flow statements. Open
Open
if (func.call(thisArg, t[i], i, t))
res[c++] = t[i];
Avoid deeply nested control flow statements. Open
Open
if (func(t[i], i, t))
res[c++] = t[i];