how to check if a string contains substring in javascript?
JavaScript String includes() Method The includes() method determines whether a string contains the characters of a specified string. This method returns true if the string contains the characters, and false if not. Note: The includes() method is case sensitive.