How can I check if one string contains another substring?

How can I check if one string contains another substring in JavaScript? Usually I would expect a String.contains()
method, but there doesn't seem to be one.
Javascript
- asked 9 years ago
- B Butts
0Answer

Your Answer