Not many people now it but you can achieve it by using Object.freeze method!
Do you usually use this in your code? What other approaches do you take when you want to ensure data cannot be changed?
#javascript #vscode #visualstudiocode #object #jstips #jstricks #codewithdan
★FOLLOW ME ON MY OTHER SOCIAL NETWORKS★
► Instagram: / code.with.dan
► Twitter: / depixelado
► Facebook: / codewithdaniel
On this page of the site you can watch the video online Create Inmutable Objects in Vanilla Javascript 🤯 with a duration of hours minute second in good quality, which was uploaded by the user Code with Daniel Jimenez 15 June 2022, share the link with friends and acquaintances, this video has already been watched 1,020 times on youtube and it was liked by 30 viewers. Enjoy your viewing!