Skip to main content

CommonStringPartitionReplace

Callable

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

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


    Type parameters

    • T

    Parameters

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

    Returns (string | T)[]