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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.