JS Immutability
It is one of the core principles of functional programming.
Meaning: Objects whose state can't be altered once it is created.
Simple example would be slice to make you easily grasp the meaning.
const arr = [1,2,3,4];
const slicedArray = arr.slice(1,...
vkglobal.hashnode.dev2 min read