Validator
validator.js, validator.js
, на сайте с 18 декабря 2022, 18:38
A library of string validators and sanitizers.
This library validates and sanitizes strings only.
If you're not sure if your input is a string, coerce it using input + ''. Passing anything other than a string will result in an error.