Function stringEqualsIgnoreCase

  • Case insensetive tring equals comparison that supports string arrays as well as single strings. Comparisons are case insensitive, and the comparison is true if any of the strings in the array match the specified string.

    Parameters

    • a: undefined | null | string

      String a to compare

    • b: undefined | null | string | string[]

      String b to compare or array of strings to compare against a

    Returns boolean

    true if a matches any of the strings in b, false otherwise