The array to shuffle.
The same array, but shuffled.
This function does not guarantee that the order of the elements will be different after shuffling.
T - The type of the elements in the input array.
const input = [1, 2, 3, 4, 5];
arrShuffle(input);
//=> [3, 1, 5, 2, 4]
Generated using TypeDoc
Shuffle items in an array in-place. Guarantees changes.