Stefan_S_from_H@piefed.zip to Microblog Memes@lemmy.worldEnglish · 9 days agoThdpssspsmedia.piefed.zipimagemessage-square59linkfedilinkarrow-up1650arrow-down111file-text
arrow-up1639arrow-down1imageThdpssspsmedia.piefed.zipStefan_S_from_H@piefed.zip to Microblog Memes@lemmy.worldEnglish · 9 days agomessage-square59linkfedilinkfile-text
minus-squaredave@feddit.ukcakelinkfedilinkEnglisharrow-up6·9 days agoYou missed a ‘?’ I think you meant: input?.map?.(item => …
minus-squarepython@lemmy.worldlinkfedilinkEnglisharrow-up3·9 days agooh, you’re right lol The first ?. after input would be more more of a safeguard against input being null/undefined and the .map not existing on it would have to have another ?.
You missed a ‘?’ I think you meant:
input?.map?.(item => …oh, you’re right lol
The first ?. after input would be more more of a safeguard against input being null/undefined and the .map not existing on it would have to have another ?.