( expr: MathJsonExpression | null | undefined )
| 457 | } |
| 458 | |
| 459 | export function missingIfEmpty( |
| 460 | expr: MathJsonExpression | null | undefined |
| 461 | ): MathJsonExpression { |
| 462 | return isEmptySequence(expr) ? MISSING : expr; |
| 463 | } |
| 464 | |
| 465 | function countFunctionLeaves(xs: MathJsonExpression[]): number { |
| 466 | if (xs[0] === 'Square') { |
no test coverage detected