typescript is there a way to pass parameter to method by reference?
<p>I have method that gets parameters and in this method there are calculations that change the parameters value.
When returning from the method the parameters continue to other methods for more calculations.</p>

<p>Is there a way to pass parameter to method by reference or the only way is by  i  join the parameters to object and return them?</p>