Function jsStringLiteral

  • Creates JavaScript string literal.

    Encloses the string into quotes and properly escapes it.

    Parameters

    • value: string

      A string contained inside literal.

    • quote: "\"" | "'" | "`" = "'"

      Quote symbol to use.

    Returns string

    String literal.

Generated using TypeDoc