I am using jQuery to check if a string is contained in any of the strings in an array like so -
var arrayText = ["the","cat","sat"];
arrayText.indexOf($('#textBox1').val()) > -1)
However this only appears to match exact cases, however is it possible to change it so that it matches part matches, e.g. "he" is present in "the" therefore the result would be greater than -1?