Nicholas Porter
Oct 14, 2022

--

I’ve found this practice useful as well. It’s a good pattern that allows for extensibility. I would say it is not mandatory though, like someone else mentioned many functions, math functions for example, only use one parameter or are simple enough to not need an object. Depends on the context.

--

--

Nicholas Porter
Nicholas Porter

Responses (1)