(value: unknown)
| 93 | .split(',') |
| 94 | .map((s) => Number.parseInt(s.trim(), 10)) |
| 95 | .filter((n) => Number.isFinite(n)); |
| 96 | } |
| 97 | |
| 98 | function parseFormula(value: unknown): string | undefined { |
| 99 | if (!Array.isArray(value)) return undefined; |
| 100 | const first = value.find((v) => typeof v === 'string'); |
| 101 | return typeof first === 'string' ? first : undefined; |
| 102 | } |
no test coverage detected