Basic usage

Draw, as in ‘to draw a card from a deck’, is used to get a random item from an array.

import { draw } from 'radash'

const fish = ['marlin', 'bass', 'trout']

draw(fish) // => a random fish


This _.draw function is 100% covered by tests. See them and contribute at GitHub.


See the source for _.draw on GitHub.