3 ms·
What about an "isValid" field returned by your API? Your problem is that you need the same logic in two places, and you can solve it by centralizing this logic
by Seb-C 5y ago
What about an "isValid" field returned by your API?
Your problem is that you need the same logic in two places, and you can solve it by centralizing this logic in one place.