Plato on Github
Report Home
node_modules/es5-ext/error/is-error.js
Maintainability
88.25
Lines of code
9
Difficulty
9.63
Estimated Errors
0.06
Function weight
By Complexity
By SLOC
'use strict'; var toString = Object.prototype.toString , id = toString.call(new Error()); module.exports = function (x) { return (x && ((x instanceof Error) || (toString.call(x)) === id)) || false; };