esnext.weak-set.add-all.js 437 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. // `WeakSet.prototype.addAll` method
  6. // https://github.com/tc39/proposal-collection-methods
  7. $({ target: 'WeakSet', proto: true, real: true, forced: IS_PURE }, {
  8. addAll: function addAll(/* ...elements */) {
  9. return collectionAddAll.apply(this, arguments);
  10. }
  11. });