Files
NapCatQQ/.pnpm-store/v3/files/ca/757fd8254f2fe6017382b9202e4643071a9d7e44fdb341bced6c68e22fe302b25e9204127e0abd4eb3f7d5edd2cd3973cc678496928e3a85cc60f194ddf26b
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

12 lines
292 B
Plaintext

/**
* Pipe
* Compose other transformers to run linearily
* pipe(min(20), max(40))
* @param {...functions} transformers
* @return {function}
*/
const combineFunctions = (a, b) => (v) => b(a(v));
const pipe = (...transformers) => transformers.reduce(combineFunctions);
export { pipe };