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

Function isIterable

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

Source from the content-addressed store, hash-verified

769 * @since 2.0.0
770 */
771export const isIterable = (input: unknown): input is Iterable<unknown> =>
772 typeof input === "string" || hasProperty(input, Symbol.iterator)
773
774/**
775 * A refinement that checks if a value is a record (i.e., a plain object).

Callers 1

allFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected