What is the right way to validate incoming data on server side? I'm using lodash for simple validation like isObject
or isArray
etc, and validator for cases when i need to validate, say, if a string isEmail
. But all this looks awkward and i'm not sure if this gonna hurt performance a lot or not so much.
There should be a way to validate incoming data the more elegant way.
via stkvtflw
No comments:
Post a Comment