Plato on Github
Report Home
node_modules/es5-ext/array/#/_compare-by-length.js
Maintainability
89.75
Lines of code
7
Difficulty
5.25
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
// Used internally to sort array of lists by length 'use strict'; var toPosInt = require('../../number/to-pos-integer'); module.exports = function (a, b) { return toPosInt(a.length) - toPosInt(b.length); };