yz3456
2024-05-01 81475c257b068c74f335024f7a15359a03cad8e8
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');
};