UNPKG

array-random-item

Version:
22 lines (15 loc) 420 B
# ARI (Array Random Item) > Returns a random item from an array. ## Install Install with [npm](https://www.npmjs.com/): ```sh $ npm install --save array-random-item ``` ## Usage ```js const ari = require('array-random-item'); console.log(ari([1, 2, 3])); // => 2 ``` ### License Copyright © 2018, [Enrique Bermúdez](https://github.com/enbermudas). Released under the [MIT License](LICENSE).