Skip to content

enbermudas/array-random

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Returns a random item from an array.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published