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