shuffleInPlace
shuffleInPlace<
T>(items):T[]
Defined in: src/secure.ts:268
Fisher-Yates in place. Mutates the array.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”T[]
Returns
Section titled “Returns”T[]
Example
Section titled “Example”const deck = [1, 2, 3];shuffleInPlace(deck);