Zod · Method
.lte
.lte() validates that a number is less than or equal to a specified limit. It is an alias for .max() on Zod number schemas.
Last updated
Syntax
z.number().lte(value)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
z.number()z.number().lt()z.number().gte()z.number().max()