You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you suggest @fernahh I'm replicating my coments from #78 here.
I think #78 is a good start point for turning this library more functional.
As an improvement, but not really required I also suggest applying more funcional concepts like decomposing some functions in smaller ones with less responsibilities.
As you suggest @fernahh I'm replicating my coments from #78 here.
I think #78 is a good start point for turning this library more functional.
As an improvement, but not really required I also suggest applying more funcional concepts like decomposing some functions in smaller ones with less responsibilities.
For example
isSecurityCodeValid
:could be refactored to something like:
or using some simple functional helpers like
compose
andcurry
for better readability:Another example
isExpirationDateValid
:could be:
The text was updated successfully, but these errors were encountered: