You can use .indexOf():
.indexOf()
if(str.indexOf(substr) > -1) { }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!