MCPcopy Create free account
hub / github.com/editablejs/editable / omitNullEntries

Function omitNullEntries

packages/yjs-transform/src/object.ts:84–92  ·  view source on GitHub ↗
(
  obj: TObj,
)

Source from the content-addressed store, hash-verified

82}
83
84export function omitNullEntries<TObj extends Record<string, any>>(
85 obj: TObj,
86): {
87 [K in keyof TObj]: TObj[K] extends null ? never : K
88} {
89 return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== null)) as {
90 [K in keyof TObj]: TObj[K] extends null ? never : K
91 }
92}

Callers 1

applyDeltaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…