docs/html/_static/underscore-1.3.1.js
File underscore-1.3.1.js
has 665 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Underscore.js 1.3.1
// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
// Underscore is freely distributable under the MIT license.
// Portions of Underscore are inspired or borrowed from Prototype,
// Oliver Steele's Functional, and John Resig's Micro-Templating.
Function eq
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function eq(a, b, stack) {
// Identical objects are equal. `0 === -0`, but they aren't identical.
// See the Harmony `egal` proposal: http://wiki.ecmascript.org/doku.php?id=harmony:egal.
if (a === b) return a !== 0 || 1 / a == 1 / b;
// A strict comparison is necessary because `null == undefined`.
Avoid too many return
statements within this function. Open
Open
return result;
Avoid too many return
statements within this function. Open
Open
return _.values(iterable);
Avoid too many return
statements within this function. Open
Open
return -1;
Avoid too many return
statements within this function. Open
Open
if (className != toString.call(b)) return false;
Avoid too many return
statements within this function. Open
Open
if ('constructor' in a != 'constructor' in b || a.constructor != b.constructor) return false;
Avoid too many return
statements within this function. Open
Open
if (stack[length] == a) return true;
Avoid too many return
statements within this function. Open
Open
if (typeof a != 'object' || typeof b != 'object') return false;