trimSuffix
Syntax
trimSuffix(input, suffix)<string>.trimSuffix(suffix)Arguments
Examples
trimSuffix("hello world", " world")
// "hello""foobar".trimSuffix("bar")
// "foo""foobar".trimSuffix("xyz")
// "foobar"Last updated