MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / missingIfEmpty

Function missingIfEmpty

src/math-json/utils.ts:459–463  ·  view source on GitHub ↗
(
  expr: MathJsonExpression | null | undefined
)

Source from the content-addressed store, hash-verified

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

Callers 14

boxHoldFunction · 0.90
parseSyntaxErrorMethod · 0.90
parseRootFunction · 0.90
parseFractionFunction · 0.90
serializeFractionFunction · 0.90
parseBinomialFunction · 0.90
serializeBinomialFunction · 0.90
serializePowerFunction · 0.90
parsePrimeFunction · 0.90
parseAlignedRowFunction · 0.90
parseEquivalentFunction · 0.90

Calls 1

isEmptySequenceFunction · 0.85

Tested by

no test coverage detected