array-random-item

1.0.2 • Public • Published

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.

/array-random-item/

    Package Sidebar

    Install

    npm i array-random-item

    Weekly Downloads

    151

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.27 kB

    Total Files

    5

    Last publish

    Collaborators

    • enbermudas