UNPKG
foxts
Version:
latest (3.13.0)
next (3.13.0-beta.1)
3.13.0
3.13.0-beta.1
3.12.0
3.11.1
3.11.0
3.10.1
3.10.0
3.9.0
3.9.0-beta.1
3.8.0
3.7.0
3.6.0
3.5.0
3.4.0
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.0
3.1.1
3.1.0
3.0.1
3.0.0
2.0.1
1.7.0
1.6.0
1.5.1
1.5.0
1.4.0
1.3.1
1.3.0
1.2.0
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
0.0.0
Opinionated collection of common TypeScript utils by @SukkaW
github.com/SukkaW/foxts
foxts
/
dist
/
shuffle-array.d.ts
9 lines
(7 loc)
•
224 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
interface
ShuffleArrayOptions
{
copy
?:
boolean
;
random
?:
() =>
number
; }
declare
function
shuffleArray<T>(
arr
: T[],
options
?:
ShuffleArrayOptions
): T[];
export
{ shuffleArray };
export
type
{
ShuffleArrayOptions
};