Plato on Github
Report Home
node_modules/es5-ext/boolean/is-boolean.js
Maintainability
87.18
Lines of code
10
Difficulty
9.04
Estimated Errors
0.07
Function weight
By Complexity
By SLOC
'use strict'; var toString = Object.prototype.toString , id = toString.call(true); module.exports = function (x) { return (typeof x === 'boolean') || ((typeof x === 'object') && ((x instanceof Boolean) || (toString.call(x) === id))); };