UNPKG

@klodianimeri/pipejs

Version:

Pipe functions that provide convenient and efficient ways to work with iterators.

6 lines 217 B
export const assertSync = (value) => { if (!value || typeof value[Symbol.iterator] !== 'function') { throw new Error(`Value not a sync iterator: ${value}`); } }; //# sourceMappingURL=assert-sync.js.map