Codibre/fluent-iterable

View on GitHub
src/is-fluent-async-iterable.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { FluentAsyncClass } from './fluent-async-class';
import { isClassFactory } from './utils/internal-utils';

/**
 * Return true when the informed value is an fluent async 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 fluent async iterable
 */
export const isFluentAsyncIterable = isClassFactory(FluentAsyncClass);