Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

id function does not exist (Chapter 8) #623

Open
klequis opened this issue Jul 19, 2021 · 0 comments
Open

id function does not exist (Chapter 8) #623

klequis opened this issue Jul 19, 2021 · 0 comments

Comments

@klequis
Copy link

klequis commented Jul 19, 2021

In chapter 8 the final code example before "Old McDonald..." has this line

const zoltar = compose(console.log, either(id, fortune), getAge(moment()));

However, the support functions do not have an id function. They do have an identity function. I'm wondering if the line in the code example should actually be using identity:

const zoltar = compose(console.log, either(identity, fortune), getAge(moment()));

I'm running the code in a Node project where I just copied in all the support files from the repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant