1
0
Fork 0
arangodb/js/node/node_modules/es5-ext/function/valid-function.js

9 lines
173 B
JavaScript

'use strict';
var isFunction = require('./is-function');
module.exports = function (x) {
if (!isFunction(x)) throw new TypeError(x + " is not a function");
return x;
};