@unikue/ts-lang-utils
    Preparing search index...

    Function endsWithIgnoreCase

    • Returns whether the given string ends with the suffix, case-insensitive

      Parameters

      • Optionaltext: string | null

        The source string to check

      • Optionalsuffix: string | null

        The target string to compare

      Returns boolean

      whether the given string ends with the suffix, case-insensitive

      David Hsing

      endsWithIgnoreCase('foobar', 'BAR');    // true
      endsWithIgnoreCase('hello', 'BAR'); // false