Function normalizeString

  • Takes a string or a template string and returns a plain string.

    Example

    normalizeString(`Hello ${13}!`); // "Hello 13!"
    normalizeString`Hello ${13}!`; // "Hello 13!"

    Returns

    Plain string.

    Parameters

    • input: string | Readonly<TemplateStringsArray>

      String or template string.

    • Rest ...expressions: ReadOnlyArray<unknown>

      Possible values passed to the template string.

    Returns string