MCPcopy
hub / github.com/Effect-TS/effect / isEither

Function isEither

packages/effect/src/internal/either.ts:70–70  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

68
69/** @internal */
70export const isEither = (input: unknown): input is Either.Either<unknown, unknown> => hasProperty(input, TypeId)
71
72/** @internal */
73export const isLeft = <R, L>(ma: Either.Either<R, L>): ma is Either.Left<L, R> => ma._tag === "Left"

Callers 6

[Equal.symbol]Function · 0.70
ParseResult.tsFile · 0.50
eitherOrUndefinedFunction · 0.50
goFunction · 0.50
handleForbiddenFunction · 0.50
Either.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…