1
0

valid-function.js 173 B

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