Returns the string that removed the leftmost given string
Optional
The text to inspect
The string to remove
the string that removed the leftmost given string
David Hsing
removeEnd('foobar', 'hello'); // 'foobar'removeEnd('foobar', 'bar'); // 'foo' Copy
removeEnd('foobar', 'hello'); // 'foobar'removeEnd('foobar', 'bar'); // 'foo'
Returns the string that removed the leftmost given string