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

Function omit

packages/yjs-transform/src/object.ts:75–82  ·  view source on GitHub ↗
(
  obj: TObj,
  ...keys: TKeys[]
)

Source from the content-addressed store, hash-verified

73}
74
75export function omit<TObj extends Record<string, any>, TKeys extends keyof TObj>(
76 obj: TObj,
77 ...keys: TKeys[]
78): Omit<TObj, TKeys> {
79 return Object.fromEntries(
80 Object.entries(obj).filter(([key]) => !keys.includes(key as TKeys)),
81 ) as Omit<TObj, TKeys>
82}
83
84export function omitNullEntries<TObj extends Record<string, any>>(
85 obj: TObj,

Callers 1

getPropertiesFunction · 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…