UNPKG

@mub22/validity

Version:

Lightweight JavaScript validation library inspired by Laravel's rule syntax. Validate fields and forms easily with built-in rules and error messages.

5 lines (4 loc) 131 B
const max = (value, arg) => { return typeof value === "string" && value.length <= parseInt(arg || "0"); }; export default max;