✨ Weekly coding trick! 🔒 as const in TypeScript tells the compiler to infer the most specific type possible. Without it, TypeScript widens literal values to general types like string or number. With as const, you preserve exact values and gain readonly protection.
0
0
1
668
0
Download Image