Cloning objects in JavaScript. Looking under the hood of reference and primitive types.
There are two types of clones in JavaScript: deep, and shallow. To fully understand the difference, we need to dive deeper into how the interpreter treats different types of variables. Let’s go! Primitive types null undefined boolean number string symbol These are the types that are immutable. Some of you might be surprised – we […]