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

Function isObjectOrArray

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

Source from the content-addressed store, hash-verified

1008 * @since 4.0.0
1009 */
1010export function isObjectOrArray(input: unknown): input is { [x: PropertyKey]: unknown } | Array<unknown> {
1011 return typeof input === "object" && input !== null
1012}
1013
1014/**
1015 * Checks whether a value is a non-null object value that is not an array.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected