UNPKG
@pacote/shuffle
Version:
latest (2.0.4)
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.12
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
An implementation of the Durstenfeld algorithm for shuffling collections.
@pacote/shuffle
/
lib
/
esm
/
index.d.ts
2 lines
(1 loc)
•
62 B
TypeScript
View Raw
1
2
export
declare
function
shuffle<T>(items:
readonly
T[]): T[];