|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
739 bytes
|
| Line | |
|---|
| 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 | // `Array.prototype.join` method
|
|---|
| 14 | // https://tc39.es/ecma262/#sec-array.prototype.join
|
|---|
| 15 | $({ target: 'Array', proto: true, forced: FORCED }, {
|
|---|
| 16 | join: function join(separator) {
|
|---|
| 17 | return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
|
|---|
| 18 | }
|
|---|
| 19 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.