aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/es6.array.join.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/modules/es6.array.join.js')
-rw-r--r--node_modules/core-js/modules/es6.array.join.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/es6.array.join.js b/node_modules/core-js/modules/es6.array.join.js
new file mode 100644
index 000000000..1bb656538
--- /dev/null
+++ b/node_modules/core-js/modules/es6.array.join.js
@@ -0,0 +1,12 @@
+'use strict';
+// 22.1.3.13 Array.prototype.join(separator)
+var $export = require('./_export')
+ , toIObject = require('./_to-iobject')
+ , arrayJoin = [].join;
+
+// fallback for not array-like strings
+$export($export.P + $export.F * (require('./_iobject') != Object || !require('./_strict-method')(arrayJoin)), 'Array', {
+ join: function join(separator){
+ return arrayJoin.call(toIObject(this), separator === undefined ? ',' : separator);
+ }
+}); \ No newline at end of file