Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Validating that a string isn't empty after trimming - arktype
a
arktype
•
6mo ago
•
3 replies
!skyfall
Validating that a string isn't empty after trimming
Title says it all really
. I want to have ArkType trim a string and then check its length
, but
type("string.trim > 0")
type("string.trim > 0")
doesn
't work as the left side is a morph
.
arktype
Join
This is a friendly space centered around ArkType, TypeScript's 1:1 validator (https://github.com/arktypeio/arktype)
860
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Empty string or number
a
arktype / questions
12mo ago
empty string now but length string later?
a
arktype / questions
9mo ago
non-empty string - how to?
a
arktype / questions
3y ago
Test that a string contains a substring?
a
arktype / questions
16mo ago