Angular Java Script Tutorials

Component Immutability and RequiredArray

While reading through component design, one of the recommended tip is to never mutate the input properties. Let’s look at the example below. (I am using Angular but same can apply to other frameworks) Here sort is a mutable operation. This not only sort the array but also mutates the array. I have prepared the […]