1.0.2 • Published 5 years ago
array-random-item v1.0.2
ARI (Array Random Item)
Returns a random item from an array.
Install
Install with npm:
$ npm install --save array-random-item
Usage
const ari = require('array-random-item');
console.log(ari([1, 2, 3])); // => 2
License
Copyright © 2018, Enrique Bermúdez. Released under the MIT License.