Not seeing the error in my ways...
I am trying to search a string with keywords from an array and I just keep coming up with no results, please help me see what I am doing wrong here.
var stringArray = ["Trans", "Diode", "Label"];
var str = "Label, SpotChem Pipettes Oversticker";
var a = (stringArray.indexOf(str) > -1);
var b = (str.indexOf(stringArray) > -1);
console.log("a: " + a + " b: " + b);
//even using jquery: $.inArray(str, stringArray) returns -1
...
If needed you can see this code in a FIDDLE