export function isGenerator(obj) {
    if (obj == null) {
        return false;
    }
    const iterator = obj?.[Symbol.iterator];
    if (typeof iterator !== 'function') {
        return false;
    }
    const instance = obj;
    return typeof instance.next === 'function';
}
//# sourceMappingURL=is-generator.js.map