genzboomer@lemmy.zip to Programmer Humor@programming.dev · 3 days agoGot myself a new mug.lemmy.zipexternal-linkmessage-square32fedilinkarrow-up199arrow-down12
arrow-up197arrow-down1external-linkGot myself a new mug.lemmy.zipgenzboomer@lemmy.zip to Programmer Humor@programming.dev · 3 days agomessage-square32fedilink
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up9·3 days agoYes. In JavaScript, Objects without explicit keys will use the value as the key. At least that’s how it works in Chrome devtools output. 🤷♂️
minus-squareZoteTheMighty@lemmy.zipcakelinkfedilinkarrow-up8·2 days agoThis is insane, but ultimately, FAR from the most insane thing JavaScript has done to me this week, so I’ll let it slide.
Yes. In JavaScript, Objects without explicit keys will use the value as the key. At least that’s how it works in Chrome devtools output. 🤷♂️
This is insane, but ultimately, FAR from the most insane thing JavaScript has done to me this week, so I’ll let it slide.