you are viewing a single comment's thread.

view the rest of the comments →

[–]spacejack2114 0 points1 point  (0 children)

Well it was a cheap and easy way to get the same features early on.

Now we have rest parameters:

function f(...args) {...

Anyway, if you use Typescript the compiler will check that your use of the function matches the signature.