• Checks if the specified string a ends with the specified string based. By default the comparison is case sensitive unless specified otherwise by setting the caseInsensitive option to true. If either string is null or undefined returns false.

    Parameters

    • a: undefined | null | string

      String a

    • b: undefined | null | string

      String b

    • Optional options: {
          caseInsensitive: boolean;
      }

      Options

      • caseInsensitive: boolean

        Wether or not to do a case insensitive or case-sensitive comparison

    Returns boolean