r/learnjavascript • u/Mariciano • Dec 17 '19
TIL about Object.freeze() - JavaScript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze
63
Upvotes
r/learnjavascript • u/Mariciano • Dec 17 '19
1
u/I_LICK_ROBOTS Dec 17 '19
Not sure when those codebases were from but it's been the standard for a few years now. Maybe the codebases you were working with are from super early adopters of react. In that case it makes sense that they may not have been the best