Это видео недоступно.
Сожалеем об этом.
Learn Immutable Data Structures - JavaScript Object Freeze (In 2 Mins)
HTML-код
- Опубликовано: 10 июл 2024
- The Object "freeze" function in JavaScript lets you control the mutability of an object by preventing the addition, updating and deleting of properties.
For your reference, check this out:
developer.mozi...
🏫 My Udemy Courses - www.udemy.com/...
🎨 Download my VS Code theme - marketplace.vi...
💜 Join my Discord Server - / discord
🐦 Find me on Twitter - / dcodeyt
💸 Support me on Patreon - / dcode
📰 Follow me on DEV Community - dev.to/dcodeyt
📹 Join this channel to get access to perks - / @dcode-software
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
#dcode #javascript #webdev
Really enjoying these 2 min vids, thanks.
Thanks for the feedback
Is there an unfreeze(), in case you only wanted to freeze an object temporarily?
Nope once it's 'frozen' that's it, but you could create a copy of the original object and then modify that👍🏻
@@michaelnorton6630 sweet, thanks!