chancejs icon indicating copy to clipboard operation
chancejs copied to clipboard

falsy returns undefined when undefined is not in pool

Open emahuni opened this issue 4 years ago • 0 comments

The falsey pool parameter isn't working as intended. eg:

chance.falsy({pool: [null] });

That sometimes produces undefined, not sure if it's a bug - bug or the it is trying to also use undefined as a falsy value.

emahuni avatar Feb 28 '21 05:02 emahuni