luckio

1.0.1 • Public • Published

NPM version

Luckio

Get lucky in a certain percentage of your tries.

Example

If you are lucky it returns true, if not false. On the first call you set the lucky chance, on each consequent call it checks if the current pick is a lucky one.

var luckio = require("luckio");
 
// 1% lucky chance & memoizing the first call
var isLucky = luckio(1);
isLucky();
 
// 50% lucky chance & no memoization
luckio(50)();

Readme

Keywords

Package Sidebar

Install

npm i luckio

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • dvalchanov