4 ms·
I had built an "async" version of this - https://github.com/rocky-jaiswal/async-utils/blob/main/src/pipeAsync.ts https://github.com/rocky-jaiswal/async-utils/bl
by rockyj 4y ago
I had built an "async" version of this - https://github.com/rocky-jaiswal/async-utils/blob/main/src/pipeAsync.ts https://github.com/rocky-jaiswal/async-utils/blob/main/src/p...
Basically can solve a lot of problems by passing state to a list of "piped" functions which modify the state and eventually generate an output.