source: trip-planner-front/node_modules/core-js/modules/esnext.set.difference.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 832 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var IS_PURE = require('../internals/is-pure');
4var getBuiltIn = require('../internals/get-built-in');
5var anObject = require('../internals/an-object');
6var aFunction = require('../internals/a-function');
7var speciesConstructor = require('../internals/species-constructor');
8var iterate = require('../internals/iterate');
9
10// `Set.prototype.difference` method
11// https://github.com/tc39/proposal-set-methods
12$({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
13 difference: function difference(iterable) {
14 var set = anObject(this);
15 var newSet = new (speciesConstructor(set, getBuiltIn('Set')))(set);
16 var remover = aFunction(newSet['delete']);
17 iterate(iterable, function (value) {
18 remover.call(newSet, value);
19 });
20 return newSet;
21 }
22});
Note: See TracBrowser for help on using the repository browser.