This is probably a dumb question but whatever.
If have two arrays like this:
let a = [0,1,2];
let b = [0,1,2,3,4,5];
Is it possible that I can make changes in one happen in the other array as if they are the same place in memory but different lengths like you could in C? (in javascript)
What i want:
a[0] = 1;
console.log(b);
//[1,1,2,3,4,5];
console.log(a);
//[1,1,2];
proxyand use the property accessor for both arrays.