I am trying to write a class to be used in my react app. The client of this function is my app only. Do I still need to valid arguments in the constructor function, etc.?
IMO, validators are needed, when a function caller is unknown. What are the scenarios where the caller of function is unknown?
So,
If the same function happen to be used by other programmers or users, the first thing that I would do is to add validations.
When I am adding validations,