pick-one
v1.0.1
Published
small module for randomly sampling an item in an array
Downloads
13
Readme
pick-one
small module for randomly sampling an item in an array
installation
npm install pick-one
usage
const pickOne = require('pick-one');
const myArr = [1,2,3];
pickOne(myArr); // 2