frsasg
Last Updated: February 25, 2016
·
1.136K
· johnmills
Photo by peter jakubowski uwm photo services   201

Easy javascript string-contains check

Super simple check to see if a string contains another string

var  mystring = "myballerstatusstring";
if (mystring.indexof("ballerstatus") !=-1) {
 alert('Totally baller status brah!');
}
Say Thanks
Respond