UNPKG
@nepwork/dashboards
Version:
latest (0.0.2)
0.0.2
Dashboards for emergencies and monitoring
github.com/nepwork/admin-ui
nepwork/admin-ui
@nepwork/dashboards
/
hgraph
/
node_modules
/
d3-hierarchy
/
src
/
array.js
17 lines
(13 loc)
•
250 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export
var
slice = Array.prototype.slice; export
function
shuffle
(
array
)
{
var
m =
array
.length, t, i;
while
(m) { i = Math.
random
() * m-- |
0
; t =
array
[m];
array
[m] =
array
[i];
array
[i] = t; }
return
array
; }