This commit is contained in:
2021-10-19 19:29:47 -03:00
parent 05c033b86e
commit 6b65f9afdc
8 changed files with 31 additions and 7 deletions

View File

@@ -4,6 +4,11 @@ const SelectRandomWord = (arrayWords) => {
Math.random() * (arrayWords.length - 0) + 0
)
if (arrayWords[randomWord] === undefined) {
return SelectRandomWord()
}
return arrayWords[randomWord]
}