JSFiddle - React, Tailwind, and code Playground
by komninoschat
JavaScript
let a = {x: 'not mutated'};
((a, b) => {
console.log(a.x, b.x);
a.x = 'mutated';
console.log(a.x, b.x)
})(a, a);
by komninoschat
let a = {x: 'not mutated'};
((a, b) => {
console.log(a.x, b.x);
a.x = 'mutated';
console.log(a.x, b.x)
})(a, a);