Skip to content
masterclass Buddy

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.

Subscribe
  • z.number()
  • z.number().lt()
  • z.number().gte()
  • z.number().max()

Source: Defining schemas | Zod. Checked 2026-11-03.