You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 anidentity
function. I'm wondering if the line in the code example should actually be usingidentity
: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.
The text was updated successfully, but these errors were encountered: