UNPKG

@klodianimeri/pipejs

Version:

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

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