97f0eb919e554b6b83823fe190a4121b6cc49479657b693378587c2693703b9dc186806339a78403fd09aac0d6ac0ce7fd9a93d3ac09bf9c490495086c179e 354 B

1234567891011
  1. 'use strict';
  2. var isCallable = require('../internals/is-callable');
  3. var tryToString = require('../internals/try-to-string');
  4. var $TypeError = TypeError;
  5. // `Assert: IsCallable(argument) is true`
  6. module.exports = function (argument) {
  7. if (isCallable(argument)) return argument;
  8. throw new $TypeError(tryToString(argument) + ' is not a function');
  9. };