Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

es.array.join.js 739B

12345678910111213141516171819
  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. var nativeJoin = uncurryThis([].join);
  8. var ES3_STRINGS = IndexedObject !== Object;
  9. var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
  10. // `Array.prototype.join` method
  11. // https://tc39.es/ecma262/#sec-array.prototype.join
  12. $({ target: 'Array', proto: true, forced: FORCED }, {
  13. join: function join(separator) {
  14. return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
  15. }
  16. });