helper.replace

Allows you to replace some parts of the string with others.

This helper function returns a string in which all occurrences of 'findindataare replaced withreplace`.

Because the helper.replace helper returns a string, it can be used in properties that accept string values.

Component properties

NameTypeDescription
type*"helper.replace"

Set component type

data*any

Data to perform the replacement on.

find*string

The value to search for — the string whose occurrences must be found in data and replaced with the string from replace.

replace*string

The value to insert in place of the matches of the find value.