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

Function isError

packages/effect/src/Predicate.ts:1208–1210  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

1206 * @since 2.0.0
1207 */
1208export function isError(input: unknown): input is Error {
1209 return input instanceof Error
1210}
1211
1212/**
1213 * Checks whether a value is a `Uint8Array`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected