Quantcast
Viewing all articles
Browse latest Browse all 9

Answer by Anthony DiSanti for identifying objects, why does the returned value from id(...) change?

These are primitive types, so I'm guessing each value gets its own ID. Try creating a true object and I think you'll see the functionality you expect.

If you need an id for a primitive, you could create an object with just one member of that type.


Viewing all articles
Browse latest Browse all 9

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>