CommonStringPartitionReplace
Callable
Parameters
string: string
replacers: Record<string, T>
An object with replacements. Note that Node elements are cloned prior to the replacement
Returns (string | T)[]
An object with replacements. Note that Node elements are cloned prior to the replacement
Partition the string into separate parts using the given replacer keys, replacing them with replacer values