We mutated the object in memory to now be {foo:"bar"} . The 5 elements in the array still point to that object which is now {foo:"bar"}.
Sam is a software engineer from Sydney. See his portfolio here. You can read more of Sam's blogs here Feel free to get in touch here
We mutated the object in memory to now be {foo:"bar"} . The 5 elements in the array still point to that object which is now {foo:"bar"}.