@cspell/cspell-pipe
Version:
Library to make working with Iterators/AsyncIterators easier.
10 lines • 352 B
JavaScript
import { toAsyncIterable } from './helpers/index.js';
import { opCombineAsync, opCombineSync } from './operators/index.js';
export function pipeAsync(i, ...fns) {
const iter = toAsyncIterable(i);
return opCombineAsync(...fns)(iter);
}
export function pipeSync(i, ...fns) {
return opCombineSync(...fns)(i);
}
//# sourceMappingURL=pipe.js.map