Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const composeHOF = (f, g) => {
- return x => cb => {
- g(x)(y => {
- f(y)(cb)
- })
- }
- }
- const readFileContentHOF = composeHOF(readFileHOF, readFileHOF)
- readFileContentHOF('./file1')(result => console.log(result))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement