Describe the bug
When passing in an empty Array to helpers.ArrayElements, I'm hoping it to return an empty Array.
Instead it throws this Error:
Uncaught Error: Max 0 should be larger then min 1.
at i0.number (https://cdn.esm.sh/v78/@faker-js/faker@6.3.1/deno/faker.js:2:2634645)
at s0.arrayElements (https://cdn.esm.sh/v78/@faker-js/faker@6.3.1/deno/faker.js:4:7275)
at <anonymous>:2:15
Reproduction
Simply faker.helpers.arrayElements([]);
Additional Info
I'm using version v6.3.1 on Deno.
Describe the bug
When passing in an empty Array to
helpers.ArrayElements, I'm hoping it to return an empty Array.Instead it throws this Error:
Reproduction
Simply
faker.helpers.arrayElements([]);Additional Info
I'm using version v6.3.1 on Deno.