|
|
|
|
|
by pcthrowaway
478 days ago
|
|
If you want to be able to use the syntax Thing.one
or Thing.two
while having each refer to a discrete symbol, you should probably use Symbolsso: const Thing = {
one: Symbol(),
two: Symbol()
} as const;
will prevent anything equality matching that isn't intentional |
|