4 ms·
I was writing TypeScript, where const just means the variable is not reassigned. For instance this is valid: const c: C = Math.random() < 0.5 ? { type: 'a'
by simulate-me 5y ago
I was writing TypeScript, where const just means the variable is not reassigned. For instance this is valid:
const c: C = Math.random() < 0.5 ? { type: 'a' } : { type: 'b' }.
- xg15 5y agoAh, I'm sorry. You're right of course!