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

Method notUndefined

packages/effect/src/Optic.ts:1066–1068  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 }
1069 forEach<S, A, B>(this: Traversal<S, A>, f: (iso: Iso<A, A>) => Optional<A, B>): Traversal<S, B> {
1070 const inner = f(id<A>())
1071 return makeOptional<S, ReadonlyArray<B>>(

Callers

nothing calls this directly

Calls 1

refineMethod · 0.95

Tested by

no test coverage detected