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

    Function replaceAllIgnoreCase

    • Returns the string that replaced 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

      • Optionalreplace: null | string

        the expected replacement string

      Returns undefined | null | string

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

      David Hsing

      replaceAllIgnoreCase(undefined, undefined, undefined);    // undefined
      replaceAllIgnoreCase('foobar-foobar', undefined, 'hello'); // 'foobar-foobar'
      replaceAllIgnoreCase('foobar-foobar', 'FOOBAR', 'hello'); // 'hello-hello'