source:
node_modules/d3-array/src/difference.js@
e4c61dd
| Last change on this file since e4c61dd was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 250 bytes | |
| Line | |
|---|---|
| 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.
