source:
node_modules/d3-array/src/union.js@
e4c61dd
| Last change on this file since e4c61dd was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 217 bytes | |
| Rev | Line | |
|---|---|---|
| [e4c61dd] | 1 | import {InternSet} from "internmap"; |
| 2 | ||
| 3 | export default function union(...others) { | |
| 4 | const set = new InternSet(); | |
| 5 | for (const other of others) { | |
| 6 | for (const o of other) { | |
| 7 | set.add(o); | |
| 8 | } | |
| 9 | } | |
| 10 | return set; | |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
