I am writing an Array-derived class in JavaScript and need to know which functions to overload so that I can be aware of changes made to the array.
I know Arra
Arra
You can also use .concat(), before using your mutation method, to ensure you are not mutating your arrays, eg
.concat()
const dontMutateMe = [4,5,1,2,3]; const sortArray = dontMutateMe.concat().sort(...)