Appearance
shuffle<T>(array): void
T
array
void
Defined in: collection.ts:78
Shuffles the items of an array in-place (modifing the source array).
T[]
The array to shuffle.
const arr = [ 'A', 'B', 'C' ] shuffle(arr) // eg. [ 'C', 'A', 'B' ]