Skip to content

Welshman Docs / @welshman/lib / choice

Function: choice() ​

choice<T>(xs): T

Defined in: packages/lib/src/Tools.ts:667

Returns random element from array

Type Parameters ​

• T

Parameters ​

xs ​

T[]

Returns ​

T