News for hackers. Stuff that matters.
Re:HTML Attributes vs. DOM Properties by no_wizard on Thursday April 25, 2024 @10:36AM (#40158113)
I do want to point out for those who don't know, on objects with a prototype (such as a class) you can control how JSON.stringify works by adding a special method `toJSON`[0] which will control how that object is serialized.

[0]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

There are no comments on this comment yet.