Skip to content
Functionutilsv0.8.17

fyShuffle

Shuffles an array using the Fisher-Yates algorithm. This function creates a new array with the same elements in a random order, without modifying the original array.

fyShuffle<TArray>(items: TArray[]): TArray[]

TArray

TArray

items

items: TArray[]