Plato on Github
Report Home
node_modules/es5-ext/error/valid-error.js
Maintainability
78.11
Lines of code
8
Difficulty
7.70
Estimated Errors
0.04
Function weight
By Complexity
By SLOC
'use strict'; var isError = require('./is-error'); module.exports = function (x) { if (!isError(x)) throw new TypeError(x + " is not an Error object"); return x; };