Function esStringLiteral

  • Creates JavaScript string literal.

    Encloses the string into quotes and properly escapes it.

    Parameters

    • value: string

      A string contained inside literal.

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

      Quote symbol to use.

    Returns string

    String literal.

Generated using TypeDoc