I'm using https://www.npmjs.com/package/uniqid
to generate random IDs. I would want to generate a list of for example 20 ids so I tried something like this :
console.log(Array(20).fill(uniqid.time()));
The problem is that the generated list contain the same generated id and not differents ids. Is there any way to create a new id for each element ?