loading...

re: Understanding Arrays in JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Ok, thanks, I'll read that. In truth, my doubt is if I can block methods like push, just to denied input elements into an array after I created one...

Hi there, yes you can make an array immutable by calling the Freeze function after you've initialized the array. Or probably easier just to make it a constant variable. Also have a look here github.com/immutable-js/immutable-js/

code of conduct - report abuse