UNPKG
@timebutt/face-api.js
Version:
latest (0.23.2)
0.23.2
0.23.1
0.23.0
JavaScript API for face detection and face recognition in the browser with tensorflow.js
@timebutt/face-api.js
/
build
/
es6
/
ops
/
shuffleArray.js
11 lines
•
324 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
export
function
shuffleArray
(
inputArray
)
{
var
array
= inputArray.
slice
();
for
(
var
i =
array
.length -
1
; i >
0
; i--) {
var
j = Math.
floor
(Math.
random
() * (i +
1
));
var
x =
array
[i];
array
[i] =
array
[j];
array
[j] = x; }
return
array
; }
//# sourceMappingURL=shuffleArray.js.map