Why the value I pass to a function behaves like a pointer?
I have this function : static calculatePrice(offer) { if (typeof (offer.TakerGets || offer.taker_gets) == "string") offer.quality = 1 / offer.quality; return offer.quality / 1000000; } I don’t understand why the function modifies the value that I pass to it (this.book[currency][side][this.j[currency][side]]). It does not modify a copy but the original as if I had passed it… Read More Why the value I pass to a function behaves like a pointer?