Spaces:
Paused
Paused
Download node_modules/@plotly/d3/src/arrays/shuffle.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 283 Bytes
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3/src/arrays/shuffle.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/@plotly/d3/src/arrays/shuffle.js
-
curl -L -o shuffle.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/%40plotly/d3/src/arrays/shuffle.js
283 Bytes
| d3.shuffle = function(array, i0, i1) { | |
| if ((m = arguments.length) < 3) { i1 = array.length; if (m < 2) i0 = 0; } | |
| var m = i1 - i0, t, i; | |
| while (m) { | |
| i = Math.random() * m-- | 0; | |
| t = array[m + i0], array[m + i0] = array[i + i0], array[i + i0] = t; | |
| } | |
| return array; | |
| }; | |