Interface Symbol

    interface Symbol {
        [toStringTag]: string;
        description: string;
        [toPrimitive](hint: string): symbol;
        toString(): string;
        valueOf(): symbol;
    }

    Properties

    [toStringTag]: string
    description: string

    Expose the [[Description]] internal slot of a symbol directly.

    Methods

    • Converts a Symbol object to a symbol.

      Parameters

      • hint: string

      Returns symbol

    • Returns a string representation of an object.

      Returns string

    • Returns the primitive value of the specified object.

      Returns symbol