Skip to content

Instantly share code, notes, and snippets.

@imkrish
Last active September 22, 2018 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imkrish/1527bc0a1b5f1ca827d4597f85f55644 to your computer and use it in GitHub Desktop.
Save imkrish/1527bc0a1b5f1ca827d4597f85f55644 to your computer and use it in GitHub Desktop.
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