def to_javascript(self) -> str:
        """Convert the destructured argument to JavaScript.

        Returns:
            The destructured argument in JavaScript.
        """
        return format.wrap(
            ", ".join(self.fields) + (f", ...{self.rest}" if self.rest else ""),
            "{",
            "}",
        )
Convert the destructured argument to JavaScript.

        Returns:
            The destructured argument in JavaScript.
        
reflex/vars/function.py