pikkr

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

Usage no npm install needed!

<script type="module">
  import pikkr from 'https://cdn.skypack.dev/pikkr';
</script>

README

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