jiangping
2025-07-16 7c50e4ce6be2929057b61afb9ef1ee7a61beb6f6
1
2
3
4
5
6
7
8
9
10
11
'use strict';
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 new $TypeError(tryToString(argument) + ' is not a function');
};