Returns the string that removed the first occurrence in the given text
Optional
the text to inspect
the string or regex to match
the string that removed the first occurrence in the given text
removeFirst(undefined, undefined); // undefinedremoveFirst('foobar-foobar', undefined); // 'foobar-foobar'removeFirst('foobar-foobar', 'bar'); // 'foo-foobar' Copy
removeFirst(undefined, undefined); // undefinedremoveFirst('foobar-foobar', undefined); // 'foobar-foobar'removeFirst('foobar-foobar', 'bar'); // 'foo-foobar'
Returns the string that removed the first occurrence in the given text