Closed thetrevorharmon closed 1 year ago
Lodash has an array function called .sampleSize which lets you get n random elements from an array. It's exactly what is happening here but a single function call instead of a bunch of logic 🎉
.sampleSize
n
Lodash has an array function called
.sampleSize
which lets you getn
random elements from an array. It's exactly what is happening here but a single function call instead of a bunch of logic 🎉