SyntaxFix
Write A Post
Hire A Developer
Questions
You can use .indexOf():
.indexOf()
if(str.indexOf(substr) > -1) { }