DEV Community

Discussion on: List of Variables vs. Object

Collapse
 
hdennen profile image
Harry Dennen

In my experience using object notation makes it easier to make changes later, and with typescript updating an object interface helps catch any errors when making that change.

Also, if you're into functional composition then having one parameter is ideal.