TypeScript 🌎 Web ⚛️ Open Source Software💡UI/UX/DX
Unlike most TS features, enums generate runtime code and aren't erased during compilation. They can't be used as type constraints and cause bundle bloat.
Unlike most TS features, enums generate runtime code and aren't erased during compilation. They can't be used as type constraints and cause bundle bloat.
This means the type system itself can compute any algorithm... though you probably shouldn't 😅
This means the type system itself can compute any algorithm... though you probably shouldn't 😅
Instead of writing your own, use these standard ones:
Instead of writing your own, use these standard ones: