Returns the string that replaced all occurrences in the given text
Optional
the text to inspect
the string or regex to match
the expected replacement string
the string that replaced all occurrences in the given text
replaceAll(undefined, undefined, undefined); // undefinedreplaceAll('foobar-foobar', undefined, 'hello'); // 'foobar-foobar'replaceAll('foobar-foobar', 'foobar', 'hello'); // 'hello-hello' Copy
replaceAll(undefined, undefined, undefined); // undefinedreplaceAll('foobar-foobar', undefined, 'hello'); // 'foobar-foobar'replaceAll('foobar-foobar', 'foobar', 'hello'); // 'hello-hello'
Returns the string that replaced all occurrences in the given text