chancejs
chancejs copied to clipboard
falsy returns undefined when undefined is not in pool
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.