Last active
September 22, 2018 21:55
-
-
Save imkrish/1527bc0a1b5f1ca827d4597f85f55644 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hangman2(secretWords: string, ...letters: string[]) { | |
return [...secretWords].every(char => letters.includes(char)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment