How can I check if one string contains another substring?

706

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.

0Answer


Your Answer

    Facebook Share        
       
  • asked 4 years ago
  • viewed 706 times
  • active 4 years ago

Hot Questions