Plato on Github
Report Home
node_modules/es5-ext/math/trunc/is-implemented.js
Maintainability
72.57
Lines of code
7
Difficulty
9.60
Estimated Errors
0.05
Function weight
By Complexity
By SLOC
'use strict'; module.exports = function () { var trunc = Math.trunc; if (typeof trunc !== 'function') return false; return (trunc(13.67) === 13) && (trunc(-13.67) === -13); };