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-array
/
src
/
permute.js
6 lines
(5 loc)
•
161 B
JavaScript
View Raw
1
2
3
4
5
6
export
default
function
(
array, indexes
) {
var
i = indexes.
length
, permutes =
new
Array
(i);
while
(i--) permutes[i] = array[indexes[i]];
return
permutes; }