aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/internals/a-function.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/internals/a-function.js')
-rw-r--r--node_modules/core-js/internals/a-function.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/node_modules/core-js/internals/a-function.js b/node_modules/core-js/internals/a-function.js
new file mode 100644
index 0000000..b597471
--- /dev/null
+++ b/node_modules/core-js/internals/a-function.js
@@ -0,0 +1,5 @@
+module.exports = function (it) {
+ if (typeof it != 'function') {
+ throw TypeError(String(it) + ' is not a function');
+ } return it;
+};