@nevware21/ts-utils
    Preparing search index...

    Function polyStrIncludes

    • The polyStrIncludes() method performs a case-sensitive search to determine whether one string may be found within another string, returning true or false as appropriate. Like the native function the value (eg. a String object, a number or an array) and the searchString are converted to strings (since 0.20.0 a Symbol throws a TypeError, like the native function), and a regular expression searchString (identified like the native IsRegExp) throws a TypeError.

      Parameters

      • value: string

        The string value to be searched.

      • searchString: string

        A string to be searched for within the value. Cannot be a regex. All values that are not regexes are coerced to strings, so omitting it or passing undefined causes strIncludes() to search for the string "undefined", which is rarely what you want.

      • Optionalposition: number

        The position within the string at which to begin searching for searchString. (Defaults to 0.)

      Returns boolean

      true if the search string is found anywhere within the given string value, including when searchString is an empty string; otherwise, false.

      0.9.0

      TypeError If searchString is a regex, or the value is null or undefined.