Spaces:
Sleeping
Sleeping
Download src/node_modules/clean-css/lib/utils/clone-array.js from PierreRouanet/gstreamer_test: direct link, hf CLI and curl.
- Browser
- Download file 239 Bytes
-
https://huggingface.co/spaces/PierreRouanet/gstreamer_test/resolve/main/src/node_modules/clean-css/lib/utils/clone-array.js
- Command line
-
hf download hf://spaces/PierreRouanet/gstreamer_test/src/node_modules/clean-css/lib/utils/clone-array.js
-
curl -L -o clone-array.js https://huggingface.co/spaces/PierreRouanet/gstreamer_test/resolve/main/src/node_modules/clean-css/lib/utils/clone-array.js
239 Bytes
| function cloneArray(array) { | |
| var cloned = array.slice(0); | |
| for (var i = 0, l = cloned.length; i < l; i++) { | |
| if (Array.isArray(cloned[i])) { cloned[i] = cloneArray(cloned[i]); } | |
| } | |
| return cloned; | |
| } | |
| module.exports = cloneArray; | |