randray
Get a random item from an array
Note: randray
is only supported on iojs and node v4+. To use with an older
version of node, please use randray@1
.
Install
$ npm install --save randray
API
var randray = // not an array will throw // empty array will return null// => null // => 2
Test
$ npm test
Coverage
$ npm test -- --cov
Author
Evan Lucas
License
MIT (See LICENSE
for more info)