Suchen Sie die Zeichenfolge in Array JavaScript
var myarr = ["I", "like", "turtles"];
var arraycontainsturtles = (myarr.indexOf("turtles") > -1);
Dr.Paashaas
var myarr = ["I", "like", "turtles"];
var arraycontainsturtles = (myarr.indexOf("turtles") > -1);
var found = categories.includes('specialword');