Jeśli przekażę obiekt do funkcji, to ten sam obiekt JavaScript

When you assign an object to another variable,
JavaScript does not create a new copy of the object.

Instead it makes the new variable reference the 
same object as the original. 

It is just that two variables having different names are accessing 
the same underlying object.
QuietHumility