‘liusuyi’
2023-08-22 7a880de423619dc266a60dc643794ba626f7131f
1
2
3
4
5
6
7
8
9
10
var isCallable = require('../internals/is-callable');
var tryToString = require('../internals/try-to-string');
 
var $TypeError = TypeError;
 
// `Assert: IsCallable(argument) is true`
module.exports = function (argument) {
  if (isCallable(argument)) return argument;
  throw $TypeError(tryToString(argument) + ' is not a function');
};