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