Download node_modules/d3-array/src/merge.js from NKessler/Horizon: direct link, hf CLI and curl.
- Browser
- Download file 165 Bytes
-
https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-array/src/merge.js
- Command line
-
hf download hf://NKessler/Horizon/node_modules/d3-array/src/merge.js
-
curl -L -o merge.js https://huggingface.co/NKessler/Horizon/resolve/main/node_modules/d3-array/src/merge.js
165 Bytes
| function* flatten(arrays) { | |
| for (const array of arrays) { | |
| yield* array; | |
| } | |
| } | |
| export default function merge(arrays) { | |
| return Array.from(flatten(arrays)); | |
| } | |