• Test the given string against an array of strings and regexes. By default, string matching is done on a substring-inclusion basis rather than a strict equality basis

    Parameters

    • testString: string

      The string to test

    • patterns: (string | RegExp)[] = []

      The patterns against which to test the string

    • requireExactStringMatch: boolean = false

      If true, testString must match one of the given string patterns exactly in order to count. If false, testString will match a string pattern if it contains that pattern.

    Returns boolean

Generated using TypeDoc