Immutability in functional programming
Immutability is a fundamental concept you should be familiar with when learning functional programming.
Immutability is a key concept in functional programming and JavaScript. This collection of articles will help you understand immutability, its benefits, and how to implement it in your code.
Immutability is a fundamental concept you should be familiar with when learning functional programming.
Pick up a few new tricks which you can use to clone arrays in JavaScript.
Learn how JavaScript handles mutable data, such as objects and arrays, and understand how shallow cloning and deep cloning work.
JavaScript’s spread operator is a very versatile tool. Here are some simple ways to use it.
Learn how mutability works in JavaScript, its applications to objects and how you can properly freeze them to make them constant.
Freezing objects is not the only way to prevent mutations. Learn how you can leverage the Proxy object to your advantage.
When it comes to immutability, JavaScript strings are often a source of confusion. Yet they're not as complicated as you might expect.
How JavaScript handles passing data is a source of confusion and bugs for many developers, especially when it comes to object types.