main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
669 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var $ = require('../internals/export');
|
---|
3 | var fails = require('../internals/fails');
|
---|
4 | var intersection = require('../internals/set-intersection');
|
---|
5 | var setMethodAcceptSetLike = require('../internals/set-method-accept-set-like');
|
---|
6 |
|
---|
7 | var INCORRECT = !setMethodAcceptSetLike('intersection') || fails(function () {
|
---|
8 | // eslint-disable-next-line es/no-array-from, es/no-set -- testing
|
---|
9 | return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
|
---|
10 | });
|
---|
11 |
|
---|
12 | // `Set.prototype.intersection` method
|
---|
13 | // https://github.com/tc39/proposal-set-methods
|
---|
14 | $({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
|
---|
15 | intersection: intersection
|
---|
16 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.