inato/fp-ts-cheatsheet

Missing "(" on fold example

Closed this issue · 0 comments

It appears that the fold example has a missing closing parenthesis:

const doubleOrZero = fold(
    (eitherError: string) => {
      console.log(`The error was ${eitherError}`; //missing closing parenthesis
      return 0;
    }, 
    (value: RawStudentRowValues) =>value, // on right branch
  );