jroid8@lemmy.worldcake to Programmer Humor@lemmy.ml · 7 months agoknow the features of your languagelemmy.worldimagemessage-square146fedilinkarrow-up1642arrow-down124
arrow-up1618arrow-down1imageknow the features of your languagelemmy.worldjroid8@lemmy.worldcake to Programmer Humor@lemmy.ml · 7 months agomessage-square146fedilink
minus-squarenick@campfyre.nickwebster.devlinkfedilinkEnglisharrow-up5·7 months agoconst fn = (a, b) => a ?? b
minus-squareshasta@lemm.eelinkfedilinkarrow-up2·7 months agoBut this just creates a function. You still have to call it.
const fn = (a, b) => a ?? b
Gotta love some peer review
But this just creates a function. You still have to call it.
((a, b) => a ?? b)();