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

    Function removeAllIgnoreCase

    • Returns the string that removed all occurrences in the given text, case-insensitive

      Parameters

      • Optionaltext: null | string

        the text to inspect

      • Optionalsearch: null | string | RegExp

        the string or regex to match

      Returns undefined | null | string

      the string that removed all occurrences in the given text, case-insensitive

      David Hsing

      removeAllIgnoreCase(undefined, undefined);    // undefined
      removeAllIgnoreCase('foobar-foobar', undefined); // 'foobar-foobar'
      removeAllIgnoreCase('foobar-foobar', 'BAR'); // 'foo-foo'