• dohpaz42@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      ·
      23 hours 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
        ·
        14 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.