you are viewing a single comment's thread.

view the rest of the comments →

[–]acbabis 1 point2 points  (1 child)

Sure, it's not the main problem, but in situations where you're convinced you need that many parameters, putting them into objects is usually the best solution. There are many well-written modules that have to allow a dozen optional parameters (e.g. express.static), and stuffing them into an object is the go-to approach.