Sha256: 1d43dc33fe43d39a5ad3af11346b94b772937974672fa6dfd19628d4adcc63bf

Contents?: true

Size: 659 Bytes

Versions: 4

Compression:

Stored size: 659 Bytes

Contents

'use strict';
var $ = require('../internals/export');
var aWeakMap = require('../internals/a-weak-map');
var remove = require('../internals/weak-map-helpers').remove;

// `WeakMap.prototype.deleteAll` method
// https://github.com/tc39/proposal-collection-methods
$({ target: 'WeakMap', proto: true, real: true, forced: true }, {
  deleteAll: function deleteAll(/* ...elements */) {
    var collection = aWeakMap(this);
    var allDeleted = true;
    var wasDeleted;
    for (var k = 0, len = arguments.length; k < len; k++) {
      wasDeleted = remove(collection, arguments[k]);
      allDeleted = allDeleted && wasDeleted;
    } return !!allDeleted;
  }
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-0.26.10 packages/webpacker/node_modules/core-js/modules/esnext.weak-map.delete-all.js
decidim-0.26.9 packages/webpacker/node_modules/core-js/modules/esnext.weak-map.delete-all.js
decidim-0.28.0.rc5 packages/webpacker/node_modules/core-js/modules/esnext.weak-map.delete-all.js
decidim-0.28.0.rc4 packages/webpacker/node_modules/core-js/modules/esnext.weak-map.delete-all.js