Version 1
[yaffs-website] / node_modules / core-js / modules / _iobject.js
diff --git a/node_modules/core-js/modules/_iobject.js b/node_modules/core-js/modules/_iobject.js
new file mode 100644 (file)
index 0000000..b58db48
--- /dev/null
@@ -0,0 +1,5 @@
+// fallback for non-array-like ES3 and non-enumerable old V8 strings
+var cof = require('./_cof');
+module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
+  return cof(it) == 'String' ? it.split('') : Object(it);
+};
\ No newline at end of file