Published on

Clean Code

Author

One or two arguments is the ideal case, and three should be avoided if possible. Anything more than that should be consolidated. Usually, if you have more than two arguments then your function is trying to do too much. In cases where it's not, most of the time a higher-level object will suffice as an argument.

Small stract from: https://github.com/ryanmcdermott/clean-code-javascript