1 | 'use strict';
|
2 | var $ = require('../internals/export');
|
3 | var uncurryThis = require('../internals/function-uncurry-this');
|
4 | var IndexedObject = require('../internals/indexed-object');
|
5 | var toIndexedObject = require('../internals/to-indexed-object');
|
6 | var arrayMethodIsStrict = require('../internals/array-method-is-strict');
|
7 |
|
8 | var nativeJoin = uncurryThis([].join);
|
9 |
|
10 | var ES3_STRINGS = IndexedObject !== Object;
|
11 | var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
|
12 |
|
13 |
|
14 |
|
15 | $({ target: 'Array', proto: true, forced: FORCED }, {
|
16 | join: function join(separator) {
|
17 | return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
|
18 | }
|
19 | });
|