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

Function operands

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

Source from the content-addressed store, hash-verified

148 * or no arguments.
149 */
150export function operands(
151 expr: MathJsonExpression | null | undefined
152): ReadonlyArray<MathJsonExpression> {
153 if (Array.isArray(expr)) return expr.slice(1) as MathJsonExpression[];
154 if (expr !== undefined && isFunctionObject(expr)) return expr.fn.slice(1);
155
156 return [];
157}
158
159/** Return the nth operand of a function expression */
160export function operand(

Callers 15

serializeFunctionFunction · 0.90
getFractionStyleFunction · 0.90
trySerializeDotNotationFunction · 0.90
wrapArgumentsMethod · 0.90
parseArgumentsMethod · 0.90
parseExpressionMethod · 0.90
containsErrorFunction · 0.90
parseGeometryMarkFunction · 0.90
serializeGeometryMarkFunction · 0.90
parseGeometryAccentFunction · 0.90
serializeGeometryAccentFunction · 0.90
numeratorDenominatorFunction · 0.90

Calls 2

isFunctionObjectFunction · 0.85
sliceMethod · 0.65

Tested by

no test coverage detected