Faced with the need to transfer the function of 5+ string and parameters object. I thought, and began to transfer only the object from which to pull the necessary function values and object data.
function (a,b,c,d,e,Object) {...};
vs.
function ({
a: a,
b: b,
......
obj: Object[]
}) {...};
Now arrive with a heady feeling that if parameters are more than three items — go to the object.
What are the explicit and implicit advantages and disadvantages in the transfer of parameters the object you are aware of?
>If your object passes through your whole code, then, fine - marilyne_Roh commented on July 8th 19 at 12:05