JavaScript Quick Tip: How To Make Your Arrays Immutable
Immutability is a core concept of functional programming. However, most data structures in standard libraries violate this principle. You can usually add and remove elements to lists or arrays, possibly leading to side effects.
const array = [1, 2, 3...
deepdive.hashnode.dev2 min read