modern-javascript-patterns

Refactor JavaScript code using ES6+ features like async/await and destructuring.

1|Updated Aug 13, 2022
One-click install
npx skills add https://github.com/sskim91/dotfiles --skill modern-javascript-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modern-javascript-patterns
Source: https://github.com/sskim91/dotfiles/tree/main/claude/skills/modern-javascript-patterns
Command: npx skills add https://github.com/sskim91/dotfiles --skill modern-javascript-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers overcome the complexity of modern JavaScript features and patterns, enabling them to write more efficient, maintainable, and performant code. It addresses issues like legacy code refactoring, asynchronous programming challenges, and the need for functional programming paradigms.

Core Features & Use Cases

  • ES6+ Features: Master async/await, destructuring, spread/rest operators, and arrow functions for concise code.
  • Asynchronous Patterns: Implement Promises and async/await for robust handling of non-blocking operations.
  • Functional Programming: Utilize map, filter, reduce, and higher-order functions for immutable data transformations.
  • Use Case: Refactor an old callback-hell JavaScript module into a clean, modern async/await structure, improving readability and maintainability.

Quick Start

Help me refactor this JavaScript code snippet to use modern ES6+ features like arrow functions and destructuring.