Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
9
node_modules/d3-array/src/merge.js
generated
vendored
Normal file
9
node_modules/d3-array/src/merge.js
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
function* flatten(arrays) {
|
||||
for (const array of arrays) {
|
||||
yield* array;
|
||||
}
|
||||
}
|
||||
|
||||
export default function merge(arrays) {
|
||||
return Array.from(flatten(arrays));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue