source:
node_modules/d3-array/src/merge.js
| Last change on this file was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 165 bytes | |
| Rev | Line | |
|---|---|---|
| [e4c61dd] | 1 | function* flatten(arrays) { |
| 2 | for (const array of arrays) { | |
| 3 | yield* array; | |
| 4 | } | |
| 5 | } | |
| 6 | ||
| 7 | export default function merge(arrays) { | |
| 8 | return Array.from(flatten(arrays)); | |
| 9 | } |
Note:
See TracBrowser
for help on using the repository browser.
