-
Notifications
You must be signed in to change notification settings - Fork 1
intersection
Subhajit Sahu edited this page Mar 8, 2020
·
16 revisions
Gives a set with values in all collections.
set.intersection(...cs);
// cs: collections
const set = require('extra-set');
set.intersection([1, 2, 3], [1, 3]);
// Set(2) { 1, 3 }
set.intersection([1, 2, 3], [1, 3], [1, 2]);
// Set(1) { 1 }
set.intersection([1, 2, 3], [4, 5]);
// Set(0) {}