Plato on Github
Report Home
node_modules/es5-ext/math/sign/shim.js
Maintainability
72.73
Lines of code
7
Difficulty
10.39
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
'use strict'; module.exports = function (value) { value = Number(value); if (isNaN(value) || (value === 0)) return value; return (value > 0) ? 1 : -1; };