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

    Function removeEndIgnoreCase

    • Returns the string that removed the rightmost given string, case-insensitive

      Parameters

      • Optionaltext: null | string

        the text to inspect

      • Optionalremove: null | string

        the string to remove, case-insensitive

      Returns undefined | null | string

      the string that removed the rightmost given string, case-insensitive

      David Hsing

      removeEndIgnoreCase('foobar', 'Hello');    // 'foobar'
      removeEndIgnoreCase('foobar', 'Bar'); // 'foo'