Added seed file for test data.
This commit is contained in:
5
src/utils/pick-random.js
Normal file
5
src/utils/pick-random.js
Normal file
@@ -0,0 +1,5 @@
|
||||
function pickRandom(array) {
|
||||
return array[Math.floor(Math.random() * array.length)];
|
||||
}
|
||||
|
||||
module.exports = pickRandom;
|
||||
Reference in New Issue
Block a user