npm

pikkr
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i pikkr

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

3.35 kB

Total Files

5

Last publish

Collaborators

  • melanieseltzer