News for hackers. Stuff that matters.
Re:Two Years of Functional Programming in JavaScript: Lesson... by commandlinefan on Friday April 13, 2018 @02:02PM (#16832379)

    // Instead of
    const format = (actual, expected) => {
      const variants = expected.join(‘, ‘);
      return `Value ${actual} is not expected here. Possible 
    variants are: ${variants}`;
    }
Well, shit, I thought _that_ was functional programming. Back to the drawing board for me, I guess.

There are no comments on this comment yet.