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

Function dictionaryFromEntries

src/math-json/utils.ts:252–262  ·  view source on GitHub ↗
(
  dict: Record<string, MathJsonExpression>
)

Source from the content-addressed store, hash-verified

250}
251
252export function dictionaryFromEntries(
253 dict: Record<string, MathJsonExpression>
254): MathJsonExpression {
255 const entries: Record<string, unknown> = Object.fromEntries(
256 Object.entries(dict).map(([k, v]) => [
257 k,
258 jsValueToExpression(v) ?? 'Nothing',
259 ])
260 );
261 return { dict: entries } as MathJsonDictionaryObject;
262}
263
264function machineValueOfString(s: string): number {
265 s = s

Callers 2

flushFunction · 0.90
parseTextRunFunction · 0.90

Calls 3

jsValueToExpressionFunction · 0.85
mapMethod · 0.65
entriesMethod · 0.65

Tested by

no test coverage detected