3 ms·
You're being pedantic and doing gotcha argumenting. Pass objects by ref, I said that to underscore its better than create new objects. I get it, its the only w
by trgn 6mo ago
You're being pedantic and doing gotcha argumenting.
Pass objects by ref, I said that to underscore its better than create new objects. I get it, its the only way, but theyre still passed by ref.
Yes, [a,b,...rest] =... is restructuring and creates new object.
Named params create new objects, it's better to pass args individually, the ref creation under the hood is not comparibly impactful.