Last active
May 6, 2022 13:04
-
-
Save Minozzzi/dfe978754f42686e23a4534e8adfb6a5 to your computer and use it in GitHub Desktop.
This gist is useful to look up a word in a given string
This file contains hidden or 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
const searchWord = (text: string, wordToSearchInText: string): boolean => text.includes(wordToSearchInText) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment