hard
Get Code Refactoring Advice
Analyze code snippets for improvement opportunities.
📝 프롬프트 내용
Analyze the following JavaScript function. Identify any potential performance bottlenecks, readability issues, or security vulnerabilities. Suggest specific refactoring steps to improve the code quality and explain why each change is necessary.