kora@sh.itjust.works to Programmer Humor@programming.dev · 6 days agostopsh.itjust.worksimagemessage-square54fedilinkarrow-up1497arrow-down126
arrow-up1471arrow-down1imagestopsh.itjust.workskora@sh.itjust.works to Programmer Humor@programming.dev · 6 days agomessage-square54fedilink
minus-squaredouglasg14b@lemmy.worldlinkfedilinkarrow-up5·5 days agoWell, this is in JS to be clear Instead of const name = user.name It’s const userToName(user) => user.name; const name = userToName(user); Ad nauseum.
minus-squarebleistift2@sopuli.xyzlinkfedilinkEnglisharrow-up3·edit-25 days agoI was afraid you’d say that. That’s stupid. Do they give a reason for why that’s ‘necessary’? (Also it should be const userToName = (user) => user.name;)
Well, this is in JS to be clear
Instead of
const name = user.name
It’s
const userToName(user) => user.name;
const name = userToName(user);
Ad nauseum.
I was afraid you’d say that. That’s stupid.
Do they give a reason for why that’s ‘necessary’?
(Also it should be
const userToName = (user) => user.name;
)