623
submitted 2 years ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 6 points 2 years ago

we can remove the return!

const fn = (a, b) => a || b
[-] [email protected] 5 points 2 years ago
[-] [email protected] 3 points 2 years ago

Gotta love some peer review

[-] [email protected] 2 points 2 years ago

But this just creates a function. You still have to call it.

[-] [email protected] 2 points 2 years ago
((a, b) => a ?? b)();
this post was submitted on 08 Dec 2023
623 points (96.4% liked)

Programmer Humor

37483 readers
238 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS