haystack that is not an element of
needles. If all characters of haystack are elements of needles or startIdx is greater than or equal to haystack.length, then -1 is returned. If the parameters are not valid UTF, the result will still be either -1 or in the range startIdx /.html# haystack.length">startIdx .. haystack.length, but will not be reliable otherwise.