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"

in #javascript7 years ago

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 :)

Coin Marketplace

STEEM 0.20
TRX 0.12
JST 0.027
BTC 64278.56
ETH 3504.01
USDT 1.00
SBD 2.54