How to check whether a string contains a substring in JavaScript?
Usually I would expect a String.contains()
method, but there doesn't seem to be one.
What is a reasonable way to check for this?
Usually I would expect a String.contains()
method, but there doesn't seem to be one.
What is a reasonable way to check for this?