Skip to content

getRandomElement

getRandomElement<T>(array): T

Defined in: utils/array.ts:22

Get a random array element.

Type Parameters

T

Parameters

array

T[]

Returns

T