ix
Version:
The Interactive Extensions for JavaScript
18 lines (14 loc) • 376 B
text/typescript
import { IterableX } from '../../iterable/iterablex.js';
import { isEmpty } from '../../iterable/isempty.js';
/**
* @ignore
*/
export function isEmptyProto<T>(this: IterableX<T>): boolean {
return isEmpty(this);
}
IterableX.prototype.isEmpty = isEmptyProto;
declare module '../../iterable/iterablex' {
interface IterableX<T> {
isEmpty: typeof isEmptyProto;
}
}