1 2 3
Now, expand the Object and voilà, you’ll see both properties. This can be very confusing with more complicated objects. If you’re too lazy to run that code, here’s proof:
As a solution, you can clone the object before logging it. Here are a few suggestions for how to do that.