1
0

valid-callable.js 142 B

123456
  1. 'use strict';
  2. module.exports = function (fn) {
  3. if (typeof fn !== 'function') throw new TypeError(fn + " is not a function");
  4. return fn;
  5. };