• dohpaz42@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 day ago

    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. 🤷‍♂️

    • ZoteTheMighty@lemmy.zip
      link
      fedilink
      arrow-up
      7
      ·
      17 hours ago

      This is insane, but ultimately, FAR from the most insane thing JavaScript has done to me this week, so I’ll let it slide.