Function templateStr

Replaces placeholder strings in a given template string with corresponding values from a context object.

  • Parameters

    • str: string

      The template string with placeholders to be replaced.

    • Rest...contexts: Record<string, unknown>[]

      The objects containing values to replace the placeholders.

    Returns string

    • The modified string with replaced placeholders.