esnext.set.add-all.js 429 B

123456789101112
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var IS_PURE = require('../internals/is-pure');
  4. var collectionAddAll = require('../internals/collection-add-all');
  5. // `Set.prototype.addAll` method
  6. // https://github.com/tc39/proposal-collection-methods
  7. $({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
  8. addAll: function addAll(/* ...elements */) {
  9. return collectionAddAll.apply(this, arguments);
  10. }
  11. });