MCPcopy Create free account
hub / github.com/codemix/graph / #normalizeValue

Method #normalizeValue

packages/graph/src/Steps.ts:3095–3100  ·  view source on GitHub ↗

* Normalize value for consistent JSON.stringify behavior. * Converts undefined to null for consistent serialization.

(value: unknown)

Source from the content-addressed store, hash-verified

3093 * Converts undefined to null for consistent serialization.
3094 */
3095 #normalizeValue(value: unknown): unknown {
3096 if (value === undefined) {
3097 return null;
3098 }
3099 return value;
3100 }
3101
3102 /**
3103 * Safely stringify a value, handling circular references and other edge cases.

Callers 1

#computeGroupKeyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected