Allows you to replace some parts of the string with others.
This helper function returns a string in which all occurrences of find
in data
are replaced with replace
.
Because the helper.replace
helper returns a string, it can be used in properties that accept string values.
Name | Type | Description |
---|---|---|
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. |
Last updated: March 29, 2023