Re:HTML comments work in JavaScript too
by eyelidlessness on Tuesday March 08, 2022 @12:34PM
(#30602780)
This isn’t much different from the typical JSON comment hack:
Most editors and tooling also know this is commonly use and ignore validation of repeated keys. Unfortunately it doesn’t much help with arrays unless you specifically handle the case (and depending on usage, handle escaped cases as well).
[ Parent
| on HN ]
There are no comments on this comment yet.