1.0.1 • Published 5 years ago

pikkr v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

pikkr npm.io

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