Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when reviewing scripts, client components, bundles, or runtime behavior related to Use modern array and object methods. Inspect both source code and the browser execution path so fixes target the real bottleneck or bug.
.claude/skills/thedaviddias-modern-array-methods/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -1% | 0% |
| case-22 | ✓→✓ | = Same ✓ | 4% | 0% |
| case-20 | ✓→✓ | = Same ✓ | -15% | 0% |
| case-10 | ✓→✓ | = Same ✓ | 6% | 0% |
| case-21 | ✓→✓ | = Same ✓ | -11% | 0% |
Modern array and object methods produce code that directly expresses intent — a filter() call self-documents that you're selecting items. Manual for loops obscure the purpose behind implementation details. These methods are also well-optimized by JavaScript engines and support chaining for concise data transformations.
Find loops in this file that could be replaced with modern array methods like map, filter, reduce, find, or flatMap.
Replace manual for/while loops with appropriate array methods to make the code more declarative.
Explain map, filter, reduce, find, flatMap, and Object.entries with practical examples.
Review scripts, client components, and browser execution paths related to Use modern array and object methods. Flag exact imports, event handlers, runtime side effects, or blocking operations that violate the rule, and state how the change should be verified in the browser.
For full implementation details, code examples, and framework-specific guidance, see references/rule.md.
Rule page: https://frontendchecklist.io/en/rules/javascript/modern-array-methods
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-22 | pass→pass | 12,531 | 11,049 | -12% | 1 | 1 | 0% | 2,404 | 2,503 | +4% | 0 | 0 | — |
case-20 | pass→pass | 15,470 | 12,227 | -21% | 1 | 1 | 0% | 2,949 | 2,504 | -15% | 0 | 0 | — |
case-10 | pass→pass | 4,622 | 3,537 | -23% | 1 | 1 | 0% | 982 | 1,043 | +6% | 0 | 0 | — |
case-21 | pass→pass | 10,887 | 7,788 | -28% | 1 | 1 | 0% | 2,110 | 1,873 | -11% | 0 | 0 | — |
case-15 | pass→pass | 2,745 | 3,623 | +32% | 1 | 1 | 0% | 498 | 952 | +91% | 0 | 0 | — |
case-01 | fail→pass | 16,075 | 15,094 | -6% | 1 | 1 | 0% | 3,415 | 3,387 | -1% | 0 | 0 | — |
case-02 | pass→pass | 8,823 | 6,687 | -24% | 1 | 1 | 0% | 1,710 | 1,544 | -10% | 0 | 0 | — |
case-03 | pass→pass | 4,730 | 3,600 | -24% | 1 | 1 | 0% | 963 | 997 | +4% | 0 | 0 | — |
case-04 | pass→pass | 3,948 | 3,336 | -16% | 1 | 1 | 0% | 962 | 1,063 | +10% | 0 | 0 | — |
case-05 | pass→pass | 5,788 | 5,217 | -10% | 1 | 1 | 0% | 1,206 | 1,360 | +13% | 0 | 0 | — |
case-06 | pass→pass | 6,934 | 5,862 | -15% | 1 | 1 | 0% | 1,455 | 1,452 | -0% | 0 | 0 | — |
case-07 | pass→pass | 3,564 | 3,399 | -5% | 1 | 1 | 0% | 591 | 941 | +59% | 0 | 0 | — |
case-08 | pass→pass | 3,430 | 4,470 | +30% | 1 | 1 | 0% | 709 | 1,161 | +64% | 0 | 0 | — |
case-09 | pass→pass | 4,117 | 2,829 | -31% | 1 | 1 | 0% | 781 | 837 | +7% | 0 | 0 | — |
case-11 | pass→pass | 17,630 | 11,918 | -32% | 1 | 1 | 0% | 2,980 | 2,461 | -17% | 0 | 0 | — |
case-12 | pass→pass | 7,441 | 5,452 | -27% | 1 | 1 | 0% | 1,420 | 1,327 | -7% | 0 | 0 | — |
case-13 | pass→pass | 9,564 | 10,796 | +13% | 1 | 1 | 0% | 2,010 | 2,482 | +23% | 0 | 0 | — |
case-14 | pass→pass | 8,894 | 5,308 | -40% | 1 | 1 | 0% | 1,772 | 1,340 | -24% | 0 | 0 | — |
case-16 | pass→pass | 6,330 | 8,412 | +33% | 1 | 1 | 0% | 1,325 | 2,037 | +54% | 0 | 0 | — |
case-17 | pass→pass | 8,533 | 6,130 | -28% | 1 | 1 | 0% | 1,726 | 1,470 | -15% | 0 | 0 | — |
case-18 | pass→pass | 3,087 | 2,264 | -27% | 1 | 1 | 0% | 464 | 679 | +46% | 0 | 0 | — |
case-19 | pass→pass | 11,077 | 4,783 | -57% | 1 | 1 | 0% | 2,107 | 1,217 | -42% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +5 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.