jroid8@lemmy.world to Programmer Humor · 1 year agoknow the features of your languagelemmy.worldimagemessage-square147fedilinkarrow-up1650arrow-down124
arrow-up1626arrow-down1imageknow the features of your languagelemmy.worldjroid8@lemmy.world to Programmer Humor · 1 year agomessage-square147fedilink
minus-squarenick@campfyre.nickwebster.devlinkfedilinkEnglisharrow-up5·1 year agoconst fn = (a, b) => a ?? b
minus-squareshastaxc@lemm.eelinkfedilinkarrow-up2·1 year 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)();