Skill Wiki v0.1.0
rule @web-style/rule-prefer-spread-over-apply

Prefer Spread Over Apply

When passing a list of values as positional arguments, spread the array (`fn(...args)`) instead of calling `fn.apply(null, args)`. When collecting variadic arguments, use rest parameters (`function fn(...…

Skill
@web-style
Domain
web-style
Version
0.1.0
Quality
4.0
Edges
3 out · 2 in
Tokens
106/242/265
$ prime install @web-style/rule-prefer-spread-over-apply

Projection

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

PreferSpreadOverApply [rule] v0.1.0

When passing a list of values as positional arguments, spread the array (fn(...args)) instead of calling fn.apply(null, args). When collecting variadic arguments, use rest parameters (function fn(...args)) instead of inspecting the legacy arguments object. Both spread and rest are dedicated syntax for the job, and both compose cleanly with arrow functions.

Source

prime-system/examples/web-style/primes/compiled/@web-style/rule-prefer-spread-over-apply/atom.yaml

Compiled at 2026-05-10