Это видео недоступно.
Сожалеем об этом.

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

Комментарии • 5

  • @williammckeever4790
    @williammckeever4790 Месяц назад +5

    Really enjoying these 2 min vids, thanks.

  • @spreadItWide
    @spreadItWide Месяц назад +2

    Is there an unfreeze(), in case you only wanted to freeze an object temporarily?

    • @michaelnorton6630
      @michaelnorton6630 Месяц назад +1

      Nope once it's 'frozen' that's it, but you could create a copy of the original object and then modify that👍🏻

    • @spreadItWide
      @spreadItWide Месяц назад

      @@michaelnorton6630 sweet, thanks!