Returns the string that removed the first occurrence in the given text, case-insensitive
Optional
the text to inspect
the string or regex to match
the string that removed the first occurrence in the given text, case-insensitive
removeFirstIgnoreCase(undefined, undefined); // undefinedremoveFirstIgnoreCase('foobar-foobar', undefined); // 'foobar-foobar'removeFirstIgnoreCase('foobar-foobar', 'BAR'); // 'foo-foobar' Copy
removeFirstIgnoreCase(undefined, undefined); // undefinedremoveFirstIgnoreCase('foobar-foobar', undefined); // 'foobar-foobar'removeFirstIgnoreCase('foobar-foobar', 'BAR'); // 'foo-foobar'
Returns the string that removed the first occurrence in the given text, case-insensitive