export const assertSync = (value?: Iterable) => { if (!value || typeof value[Symbol.iterator] !== 'function') { throw new Error(`Value not a sync iterator: ${value}`); } };