Skip to main content

CommonStringPartitionReplace

Callable

  • CommonStringPartitionReplace<T>(string, replacers): (string | T)[]

  • Partition the string into separate parts using the given replacer keys, replacing them with replacer values


    Parameters

    • string: string
    • replacers: Record<string, T>

      An object with replacements. Note that Node elements are cloned prior to the replacement

    Returns (string | T)[]