Use Set and Map for O(1) membership lookups instead of array.includes(). Apply when checking membership repeatedly or performing frequent lookups against a collection.
4.9
Rating
0
Installs
Backend Development
Category
Clear, well-structured skill demonstrating Set/Map optimization with concrete before/after examples. The description adequately conveys when to apply this pattern (repeated membership checks). However, novelty is limited as this is a straightforward, well-known optimization that a capable CLI agent could easily suggest. The skill would benefit from covering additional scenarios (Map for key-value lookups, nested loops, performance thresholds) to justify its existence over direct LLM guidance.
Loading SKILL.md…