What problem does it solve? Legacy JavaScript codebases often rely on outdated patterns like callback pyramids, var declarations, and manual string concatenation, making code hard to read, test, and maintain. This Skill provides a structured reference for modernizing JavaScript with ES6+ features and functional programming patterns. ## Core Features & Use Cases - ES6+ Syntax Modernization: Covers arrow functions, destructuring, spread/rest operators, template literals, enhanced object literals, and modern class features including private fields. - Asynchronous Patterns: Explains Promises, Promise combinators (all, allSettled, race, any), async/await, retry logic, timeout wrappers, and async generators. - Functional Programming: Demonstrates map/filter/reduce pipelines, currying, memoization, function composition, and immutable data operations. - Use Case: When migrating a callback-based Node.js module to async/await, use this Skill to apply correct error handling with try/catch, parallelize independent calls with Promise.all, and avoid common pitfalls like unhandled rejections. ## Quick Start Refactor the attached legacy JavaScript file to use modern ES6+ syntax with async/await and immutable data patterns.