Array data

I have an array which looks abit like this.
newArray = [“enemy2”,“enemy0”,“partyMember1”,“enemy3”];

is there away to brak the string up so that I can check if a word is in it.
e.g
if(newArray[0] contains “enemy”){
//runs this code
}else{
//run this code
}

any help would be great