Returns a Stream that shuffles the items of the specified array.
Type of items in the Stream.
Array to shuffle.
Stream that yields the shuffled items of the specified array.
const result = shuffle([1, 2, 3]);console.log([...result]); // [3, 1, 2] Copy
const result = shuffle([1, 2, 3]);console.log([...result]); // [3, 1, 2]
Returns a Stream that shuffles the items of the specified array.