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

Function isObject

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

Source from the content-addressed store, hash-verified

1040 * @since 2.0.0
1041 */
1042export function isObject(input: unknown): input is { [x: PropertyKey]: unknown } {
1043 return typeof input === "object" && input !== null && !Array.isArray(input)
1044}
1045
1046/**
1047 * Checks whether a value is a non-null, non-array object and narrows it to a

Callers 3

propFunction · 0.90
isReadonlyObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected