4 ms·
There are real references in JavaScript - when you pass objects. This case is completely ignored. I want to get the same pointer when it's the same object, even
by Andi 15y ago
There are real references in JavaScript - when you pass objects. This case is completely ignored. I want to get the same pointer when it's the same object, even if the properties have changed. This is stubborn. I have solved this problem in a library - and you need to add the id to the object itself.
Anyway, explicit pointers are pretty "pointless" in JavaScript and should only used for recursion detection.