wallet-core/node_modules/core-js/modules/es6.array.join.js
2017-05-28 00:40:43 +02:00

12 lines
451 B
JavaScript

'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);
}
});