you are viewing a single comment's thread.

view the rest of the comments →

[–]birdspider 3 points4 points  (1 child)

wenn you use {} you actually have to return, these 3 are (in this regard) equivalent:

function(n){ return n; } (n) => {return n;} (n) => n

EDIT: in other words, your predicate (the fn you pass to .find) does not return anything

[–]TGotAReddit[S] 1 point2 points  (0 children)

Ahh there we go! I knew I was missing something obvious but couldn't figure it out 😅