UNPKG

531 BJavaScriptView Raw
1'use strict';
2var $ = require('../internals/export');
3var call = require('../internals/function-call');
4var toSetLike = require('../internals/to-set-like');
5var $intersection = require('../internals/set-intersection');
6
7// `Set.prototype.intersection` method
8// https://github.com/tc39/proposal-set-methods
9// TODO: Obsolete version, remove from `core-js@4`
10$({ target: 'Set', proto: true, real: true, forced: true }, {
11 intersection: function intersection(other) {
12 return call($intersection, this, toSetLike(other));
13 }
14});