import { _ as _export, f as toIndexedObject$1, i as indexedObject } from './well-known-symbol-9b7e0fd8.js';
import { a as arrayMethodIsStrict$1 } from './array-method-is-strict-28896b99.js';

var $ = _export;
var IndexedObject = indexedObject;
var toIndexedObject = toIndexedObject$1;
var arrayMethodIsStrict = arrayMethodIsStrict$1;

var nativeJoin = [].join;

var ES3_STRINGS = IndexedObject != Object;
var STRICT_METHOD = arrayMethodIsStrict('join', ',');

// `Array.prototype.join` method
// https://tc39.es/ecma262/#sec-array.prototype.join
$({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
  join: function join(separator) {
    return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
  }
});
