-
Notifications
You must be signed in to change notification settings - Fork 0
pipe
김태헌 edited this page Sep 26, 2024
·
2 revisions
import { pipe } from 'mori-ts';
const result = pipe(
0, // 초기값
a => a + 1, // 첫 번째 함수
a => a + 10, // 두 번째 함수
a => a + 100 // 세 번째 함수
);
console.log(result); // 111
https://github.com/gangnamssal/mori-ts/blob/main/src/test/pipe.spec.ts