dallbit Prompt & Skill

Legacy Code Modernizer

Updates outdated programming syntax to modern standards and patterns safely.

Prompt Template

The more specific your inputs, the higher the quality of the output.

{{legacy_tech}}
{{legacy_code}}

You are a technical debt resolution expert. Modernize the following legacy ES5 JavaScript code using current syntax standards and patterns. ### Legacy Code var self = this; Array.prototype.slice.call(arguments); ### Goals 1. **Syntax Update**: Use more efficient and secure modern keywords or APIs. 2. **Pattern Improvement**: Replace outdated patterns with current best practices. 3. **Benefits**: Explain the performance gains and stability improvements from modernization. The functional output of the logic must remain identical to the original.