GitHub

sample

Returns a random element of an array.

import { sample } from '@daffodil/core'
const sample: <T>(array: T[]) => T