Returns the string that removed all occurrences in the given text
Optional
the text to inspect
the string or regex to match
the string that removed all occurrences in the given text
removeAll(undefined, undefined); // undefinedremoveAll('foobar-foobar', undefined); // 'foobar-foobar'removeAll('foobar-foobar', 'bar'); // 'foo-foo' Copy
removeAll(undefined, undefined); // undefinedremoveAll('foobar-foobar', undefined); // 'foobar-foobar'removeAll('foobar-foobar', 'bar'); // 'foo-foo'
Returns the string that removed all occurrences in the given text