forked from ard/ruoyi-api

‘liusuyi’
2023-08-18 268c9720677e3a330c9d53c9f4b9f026869e1583
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');
};