source: node_modules/d3-array/src/difference.js@ e4c61dd

Last change on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 250 bytes
Line 
1import {InternSet} from "internmap";
2
3export default function difference(values, ...others) {
4 values = new InternSet(values);
5 for (const other of others) {
6 for (const value of other) {
7 values.delete(value);
8 }
9 }
10 return values;
11}
Note: See TracBrowser for help on using the repository browser.