Skip to content

Function randomFromArray() ​

randomFromArray<Type>(array: Type[]): Type

Source: array.utils.ts

Returns a random item from an array.

Type Parameters ​

Type ​

Type

Parameters ​

array ​

Type[]

Returns ​

Type

Built by Prozilla