genzboomer@lemmy.zip to Programmer Humor@programming.dev · 3 hours agoGot myself a new mug.lemmy.zipexternal-linkmessage-square7linkfedilinkarrow-up10
arrow-up10external-linkGot myself a new mug.lemmy.zipgenzboomer@lemmy.zip to Programmer Humor@programming.dev · 3 hours agomessage-square7linkfedilink
minus-squareone_old_coder@piefed.sociallinkfedilinkEnglisharrow-up0·3 hours agoArray Damon? Vector Damon? I don’t get it.
minus-squarepython@lemmy.worldlinkfedilinkarrow-up0·3 hours agoMe neither, but I bet it’s still valid JS syntax
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up0·1 hour 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-squaresudoMakeUser@sh.itjust.workslinkfedilinkarrow-up0·3 hours agoI would say JSON Bourne but every member within the curlys needs to be a key value pair, so this isn’t JSON.
minus-squarebamboo@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up0·26 minutes agoYeah, {} should be [] so it would look something like this: [""]
minus-squaregenzboomer@lemmy.zipOPlinkfedilinkarrow-up0·3 hours agoHe was always very forgetful, Mr. Bourne… and well spotted! 😉
Array Damon? Vector Damon? I don’t get it.
Me neither, but I bet it’s still valid JS syntax
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. 🤷♂️
I would say JSON Bourne but every member within the curlys needs to be a key value pair, so this isn’t JSON.
Yeah,
{}should be[]so it would look something like this:[""]He was always very forgetful, Mr. Bourne… and well spotted! 😉