2 lines
91 B
JavaScript
2 lines
91 B
JavaScript
const sample = arr => arr[Math.floor(Math.random() * arr.length)];
|
|
module.exports = sample |