( dict: Record<string, MathJsonExpression> )
| 250 | } |
| 251 | |
| 252 | export 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 | |
| 264 | function machineValueOfString(s: string): number { |
| 265 | s = s |
no test coverage detected