UNPKG
face-api.js
Version:
latest (0.22.2)
0.22.2
0.22.1
0.22.0
0.21.0
0.20.1
0.20.0
0.19.0
0.18.0
0.17.1
0.17.0
0.16.2
0.16.1
0.16.0
0.15.1
0.15.0
0.14.3
0.14.2
0.14.1
0.14.0
0.13.0
0.12.1
0.12.0
0.11.0
0.10.1
0.10.0
0.9.2
0.9.1
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.1
0.3.0
0.2.0
0.1.0
0.0.0
JavaScript API for face detection and face recognition in the browser with tensorflow.js
face-api.js
/
build
/
es6
/
ops
/
shuffleArray.js
11 lines
•
334 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