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

Function expressionError

test/utils.ts:259–263  ·  view source on GitHub ↗
(latex: string)

Source from the content-addressed store, hash-verified

257
258export function expressionError(latex: string): string | string[] {
259 errors = [];
260 engine.parse(latex);
261 return errors.length === 1 ? errors[0] : errors;
262}
263
264function validJSONNumber(num: string | number) {
265 if (typeof num === 'number') return num;
266 const val = Number(num);

Callers 1

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected