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

Function isIterable

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

Source from the content-addressed store, hash-verified

1295 * @since 2.0.0
1296 */
1297export function isIterable(input: unknown): input is Iterable<unknown> {
1298 return hasProperty(input, Symbol.iterator) || isString(input)
1299}
1300
1301/**
1302 * Checks whether a value is a `Promise`-like object with `then` and `catch`.

Callers 2

allFunction · 0.90
effect.tsFile · 0.90

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected