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

Function unitSymbol

src/compute-engine/library/quantity-arithmetic.ts:46–49  ·  view source on GitHub ↗
(q: QuantityExpr)

Source from the content-addressed store, hash-verified

44 readonly op1: Expression;
45 readonly op2: Expression;
46 readonly ops: ReadonlyArray<Expression>;
47};
48
49/** Check if an expression is a Quantity and narrow the type. */
50export function isQuantity(expr: Expression): expr is QuantityExpr {
51 return isFunction(expr, 'Quantity');
52}

Callers 1

quantityAddFunction · 0.85

Calls 1

isSymbolFunction · 0.90

Tested by

no test coverage detected