UNPKG

iter-tools-es

Version:
18 lines (14 loc) 464 B
const { asyncWrapWithIterableIterator, asyncEnsureIterable } = require('../../internal/async-iterable.js'); const { __asyncJoinWithSeq } = require('../$join-with-seq/async-join-with-seq.js'); const emptySeq = []; function __asyncJoin(source) { return __asyncJoinWithSeq(asyncEnsureIterable(source), emptySeq); } exports.__asyncJoin = __asyncJoin; const asyncJoin = /*#__PURE__*/asyncWrapWithIterableIterator(__asyncJoin); exports.asyncJoin = asyncJoin;