Funny gotcha: when I tried to use explicit type conversion when storing a number to a DOM data set property, it stored the toString function reference instead, serialized as a string 🤦 – always verify your assumptions!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Funny gotcha: when I tried to use explicit type conversion when storing a number to a DOM data set property, it stored the
toStringfunction reference instead, serialized as a string 🤦 – always verify your assumptions!