UNPKG

ix

Version:

The Interactive Extensions for JavaScript

18 lines (14 loc) 430 B
import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { isEmpty } from '../../asynciterable/isempty.js'; /** * @ignore */ export function isEmptyProto<T>(this: AsyncIterableX<T>): Promise<boolean> { return isEmpty(this); } AsyncIterableX.prototype.isEmpty = isEmptyProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX<T> { isEmpty: typeof isEmptyProto; } }