UNPKG

is-what

Version:

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.

3 lines (2 loc) 153 B
/** Returns whether the payload is an iterable (regular or async) */ export declare function isIterable(payload: unknown): payload is Iterable<unknown>;