valid-function.js 189 B

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