re: Equality of Data Structures: Ruby vs. JavaScript VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

Hi Ahmad - this is correct! For data structures, it does check to see if the two things being compared point to the same reference in memory - for primitives, it compares the items by value. I'd originally had a bit in the article about reference vs identity, but I chopped it out because it was getting convoluted 😳And I think you're right, the TL;DR would be better suited at the beginning. Thanks for your input πŸ™Œ

code of conduct - report abuse