Skip to content

#trimEnd

Returns the string with all trailing whitespace removed.

#trimEnd(value)
Category StringsValid in Property value
Name Type Description
value path | string The string to trim.

string

source.json
{
"text": " padded "
}
transformer.json
{
"result": "#trimEnd($.text)"
}
output.json
{
"result": " padded"
}

Try it in the playground →

#trim · #trimStart