JavaScript: Check if a string contains a substring (4 approaches ...

JavaScript: Check if a string contains a substring (4 approaches ...