Function caseInsensitiveEqual

  • Case insentive comparison of two strings. If the characters have the same letters even if they have a different case it will return true

    Type Parameters

    • T extends string

    Parameters

    Returns boolean

    Example

    caseInsensitiveEqual("hi", "HI") === true
    caseInsensitiveEqual("hi", "hi") === true
    caseInsensitiveEqual("hi", "HI") === true
    caseInsensitiveEqual("hi", "HI!") === false
    caseInsensitiveEqual("hí", "HI") === false
    caseInsensitiveEqual("hí", "HÍ") === true
    caseInsensitiveEqual("hII", "Hii") === true