Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const { guessed, all } = getState().match;
console.log(all, guessed) // ['red'] ['red']
if (guessed[0] === all[0]) {
// keep going from here, guesses are correct
return;
}
// player didnt guessed properly, do something about it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment