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