esnext.weak-map.delete-all.js 455 B

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