Using JavaScript Proxies to Make Sorting Arrays Safe
Array methods can be grouped into two categories: mutating and non-mutating methods. Methods such as push, pop, and splice are mutating because they change the array they are called on, for example:
const myArr = [1, 2, 3];
myArr.push(4);
// myArr =...
non-traditional.dev5 min read