Re:W3.css – A minimal alternative to Bootstrap
by acdibble on Wednesday September 14, 2022 @05:42AM
(#32834998)
Also known as "well-known symbols".
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Re:W3.css – A minimal alternative to Bootstrap
by Waterluvian on Thursday September 15, 2022 @08:34AM
(#32850828)
Ohhhh okay. So it’s just a flag describing expectations about an object. And as a Symbol it doesn’t interfere with any other part of the object such as properties or iteration.
The purpose of having Symbol values is to ensure the property keys are unique and can't collide with string keys that predate new standards.