|
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
|
| Rev | Line | |
|---|
| [e4c61dd] | 1 | import {InternSet} from "internmap";
|
|---|
| 2 |
|
|---|
| 3 | export 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.