f776de378f
- Fix redundant double-evaluation of n.a in the 'index' case by extracting to a local const before use in both idx() call and array indexing. - Add explicit <number> type argument to reduce() calls in sum and mean functions to fix TypeScript TS2345 accumulator type error: the inferred ArrVal union type was not compatible with numeric addition. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>