Function ignoreCase

  • Compares two strings case insensitively with localeCompare.

    See

    localeCompare

    Example

    ignoreCase("A", "a") === 0;
    compareBy(v => v.toString(), ignoreCase)(0, "0") === 0;

    Parameters

    • a: string

      first value

    • b: string

      second value

    Returns number

Generated using TypeDoc