3 ms·
Okay, but please use `let output = {}` instead. Yeah, I know, const/let is about the mutability of the variable, not its content, but if you use const I'll assu
by RedNifre 3y ago
Okay, but please use `let output = {}` instead. Yeah, I know, const/let is about the mutability of the variable, not its content, but if you use const I'll assume you write in an immutable style, which you don't when you do `output.Component = Component`. Using `let` is a better warning like "Watch out, mutation ahead!".
- tkzed49 3y agothis just isn't the usage I observe; const/let is typically checked by the linter and auto-fixed. It's just another idiosyncracy of JavaScript.
- wk_end 3y ago> if you use const I'll assume you write in an immutable style Why make assumptions that don’t make sense in the language you’re using?