You are viewing a single comment's thread from:
RE: Saving Notes to a JSON file: Day Six of "The Complete Node.js Developer Course"
I am not to up on JavaScript lambda but is this valid, as in no brackets around the param. I know C# only requires the brackets when more than one argument into the lambda.
var duplicateNotes = notes.filter(note => note.title === title)
As you can see, I am a clean code junkie lol The less characters while remaining readable is always better :)