DEV Community

Discussion on: Using Array.Reduce to Streamline Your JavaScript Object Validations

Collapse
turbopasi profile image
Pascal Lamers

Good point - but i d like to think that this is also for server side validation. My rule of thumb: validate on the frontend for comfort , validate on the server for security .

Collapse
ziizium profile image
Habdul Hazeez

My thought exactly.