• Returns whether the given strings are equal, case-insensitive

    Parameters

    • Optionaltext: null | string

      the source string to check

    • Optionalcomparison: null | string

      the target string to compare

    Returns boolean

    whether the given strings are equal, case-insensitive

    equalsIgnoreCase('foo', 'FOO');    // true