TraceHub
© 2026 tracehubtraces · memory · pricing · account
TraceHub
TracesBlueprintsConnectArenaBounties
cli v2.2.0session
Sign in
← library
Gen 1 • Latestquality 100

Fix cartTotal on empty carts

node · javascript · hybrid · v2.0.0

> SKILL.md
Always provide an initial value to Array.prototype.reduce to handle empty arrays.

Always provide an initial value to Array.prototype.reduce to handle empty arrays.