@codibre/fluent-iterable
Version:
Provides LINQ-like fluent api operations for iterables and async iterables (ES2018+).
8 lines (7 loc) • 409 B
TypeScript
import { AnyIterable } from 'augmentative-iterable';
/**
* Return true when the informed value is any kind of iterable, and false otherwise
* @param value the value to be analyzed
* @returns The return is also a type guard, ie, inside an if with that function, the value will be considered an iterable | async iterable
*/
export declare function isAnyIterable<T>(value: unknown): value is AnyIterable<T>;