2.0.1 • Published 7 years ago
@linuscash/random-item v2.0.1
random-item
randomly select an item within an array
example
const randomItem = require('@linuscash/random-item')
randomItem(['hello', 'world']) // will randomly return either 'hello' or 'world'