It looks like How to check whether a string contains a substring in JavaScript? was made into a community wiki post, and most of its answers have been deleted, causing only 3 of the most useful ones to remain. But I feel like a lot of useful knowledge has been lost in the process. Yes, myString.includes(mySubString) is now the official way to check for a substring in a string in JavaScript, but there's still value in other answers that are now deleted. Examples: https://stackoverflow.com/a/19...