Plato on Github
Report Home
node_modules/es5-ext/string/#/case-insensitive-compare.js
Maintainability
90.40
Lines of code
7
Difficulty
4.64
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
'use strict'; var toLowerCase = String.prototype.toLowerCase; module.exports = function (other) { return toLowerCase.call(this).localeCompare(toLowerCase.call(String(other))); };