Well one way or another the formatAddress function needs to know the business rules. If I went with your approach I would pass the rules as an argument.
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.
Well one way or another the
formatAddress
function needs to know the business rules. If I went with your approach I would pass the rules as an argument.