3 ms·
There are also const enums, which get inlined/erased at compile time. Even so, I still avoid using enums and prefer literal types instead.
by city41 6y ago
There are also const enums, which get inlined/erased at compile time. Even so, I still avoid using enums and prefer literal types instead.