Removes a value from the end of a string.
If the string does not end with the value, nothing is done.
13.0.0
removeStart
String with the value removed from the end.
removeEnd("FooBar", "Bar")// => "Foo"removeEnd("FooBar", "Foo")// => "FooBar"removeEnd("FooBar", "Buzz")// => "FooBar"
String to check.
Value to remove.
Generated using TypeDoc
Removes a value from the end of a string.
If the string does not end with the value, nothing is done.
Since
13.0.0
See
removeStart
Returns
String with the value removed from the end.
Example