Skip to main content

shuffleArray()

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

Function to shuffle an array.

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
arrayT[]The array to be shuffled.

Returns

T[]

The shuffled array.