zod to check if string is only whitespaces

how do i use zod to check if a string is only whitespaces?
Was this page helpful?