Number of function-application nodes in a MathJSON tree.
(x: MathJSON)
| 743 | Array.isArray(m) && |
| 744 | typeof m[0] === 'string' && |
| 745 | !m[0].startsWith('_') && |
| 746 | m.length > 1 && |
| 747 | m.slice(1).every((a) => typeof a === 'string' && a.startsWith('_')) && |
| 748 | new Set(m.slice(1)).size === m.length - 1 |
| 749 | ); |
| 750 | } |
| 751 |