JavaScript Best Practices — Function Length and Parameters
Cleaning up our JavaScript code is easy with default parameters and property shorthands.
In this article, we’ll look at the best practices when designing functions, including the ideal length and the number of parameters it should take.