aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/_iobject.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/modules/_iobject.js')
-rw-r--r--node_modules/core-js/modules/_iobject.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/_iobject.js b/node_modules/core-js/modules/_iobject.js
new file mode 100644
index 00000000..2b57c8a0
--- /dev/null
+++ b/node_modules/core-js/modules/_iobject.js
@@ -0,0 +1,6 @@
+// fallback for non-array-like ES3 and non-enumerable old V8 strings
+var cof = require('./_cof');
+// eslint-disable-next-line no-prototype-builtins
+module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
+ return cof(it) == 'String' ? it.split('') : Object(it);
+};