Skill Wiki v0.1.0
rule @web-style/rule-prefer-functional-array-methods

Prefer Functional Array Methods

When iterating an array to produce a derived value — a new array, a single accumulator, the first match, a boolean — use the corresponding higher-order method.…

Skill
@web-style
Domain
web-style
Version
0.1.0
Quality
4.0
Edges
3 out · 3 in
Tokens
95/230/253
$ prime install @web-style/rule-prefer-functional-array-methods

Projection

Always in _index.xml · the agent never has to ask for this.

PreferFunctionalArrayMethods [rule] v0.1.0

When iterating an array to produce a derived value — a new array, a single accumulator, the first match, a boolean — use the corresponding higher-order method. The named method tells the reader what the loop is for in one word; a for loop with a hand-rolled accumulator buries that intent under index plumbing.

Source

prime-system/examples/web-style/primes/compiled/@web-style/rule-prefer-functional-array-methods/atom.yaml

Compiled at 2026-05-10