MCPcopy Create free account
hub / github.com/Effect-TS/effect / omit

Method omit

packages/effect/src/Optic.ts:1063–1065  ·  view source on GitHub ↗
(keys: any)

Source from the content-addressed store, hash-verified

1061 return this.compose(makeLens(Struct.pick(keys), (p, a) => ({ ...a, ...p })))
1062 }
1063 omit(keys: any) {
1064 return this.compose(makeLens(Struct.omit(keys), (o, a) => ({ ...a, ...o })))
1065 }
1066 notUndefined(): any {
1067 return this.refine(Predicate.isNotUndefined, { expected: "a value other than `undefined`" })
1068 }

Callers

nothing calls this directly

Calls 3

composeMethod · 0.95
makeLensFunction · 0.85
omitMethod · 0.65

Tested by

no test coverage detected