MCPcopy Create free account
hub / github.com/breck7/scroll / flatten

Function flatten

external/.d3.js:1034–1038  ·  view source on GitHub ↗
(arrays)

Source from the content-addressed store, hash-verified

1032}
1033
1034function* flatten(arrays) {
1035 for (const array of arrays) {
1036 yield* array;
1037 }
1038}
1039
1040function merge(arrays) {
1041 return Array.from(flatten(arrays));

Callers 1

mergeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected