Skip to content

typedoc-vitepress-theme-example / utilities / shuffleArray

shuffleArray() ​

ts
shuffleArray<T>(array): T[]

Function to shuffle an array.

Type parameters ​

• T

Parameters ​

• array: T[]

The array to be shuffled.

Returns ​

T[]

The shuffled array.