Thinking on this subject a bit more. I have to wonder if C++ made references just so there is a fast an efficient way to mutate without having to make a copy?

Maybe someone should work on a way to make references in javascript land. Sort of like immer but baked in.

https://immerjs.github.io/immer/