Plato on Github
Report Home
node_modules/es5-ext/number/to-pos-integer.js
Maintainability
93.50
Lines of code
7
Difficulty
4.09
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
'use strict'; var toInteger = require('./to-integer') , max = Math.max; module.exports = function (value) { return max(0, toInteger(value)); };