Even though JS is pass by value, if you pass an object, the other nested objects will still be references to its predecessor.