Refactor Code for Readability & Simplicity
Get a cleaner, simpler version of your code with an explanation of every change, without altering behavior.
Refactor the following {{language}} code to improve readability, reduce complexity, and follow {{framework}} best practices. Keep behavior identical and explain each change briefly. {{CLIPBOARD}}
{{language}}{{framework}}{{CLIPBOARD}}