shuffle
shuffle<
T>(items):T[]
Defined in: src/secure.ts:255
A shuffled copy. The input is untouched.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”Collection<T>
Returns
Section titled “Returns”T[]
Example
Section titled “Example”shuffle([1, 2, 3, 4, 5]); // [ 3, 1, 5, 2, 4 ]