Skip to content

#trimStart

Returns the string with all leading whitespace removed.

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

string

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

Try it in the playground →

#trim · #trimEnd