massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / a-callable.js
1 var global = require('../internals/global');
2 var isCallable = require('../internals/is-callable');
3 var tryToString = require('../internals/try-to-string');
4
5 var TypeError = global.TypeError;
6
7 // `Assert: IsCallable(argument) is true`
8 module.exports = function (argument) {
9   if (isCallable(argument)) return argument;
10   throw TypeError(tryToString(argument) + ' is not a function');
11 };