npm.io
1.0.1 • Published 7 years ago

pikkr

Licence
ISC
Version
1.0.1
Deps
0
Size
3 kB
Vulns
0
Weekly
0

pikkr

Don't what to choose? pikkr returns a random element from an array, so you don't have to.

Install

$ npm install pikkr

Usage

import pikkr from 'pikkr';

// feed it an array of anything
const result = pikkr(['hi', 2, { name: 'Fred' }]);

console.log(result);
//=> randomly chosen element from the array is returned

License

ISC Melanie Seltzer

Keywords