GitHub

sample

Returns a random element of an array.

API

const sample: <T>(array: T[]) => T