source: trip-planner-front/node_modules/core-js/modules/es.array.join.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 679 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var IndexedObject = require('../internals/indexed-object');
4var toIndexedObject = require('../internals/to-indexed-object');
5var arrayMethodIsStrict = require('../internals/array-method-is-strict');
6
7var nativeJoin = [].join;
8
9var ES3_STRINGS = IndexedObject != Object;
10var STRICT_METHOD = arrayMethodIsStrict('join', ',');
11
12// `Array.prototype.join` method
13// https://tc39.es/ecma262/#sec-array.prototype.join
14$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
15 join: function join(separator) {
16 return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
17 }
18});
Note: See TracBrowser for help on using the repository browser.