2.0.1 • Published 7 years ago

@linuscash/random-item v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

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'
2.0.1

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago