Functions for validating input and setting string errors on fields.
Functions for validating input and setting string errors on fields.
(equal-to? v n)
Returns true if the string represents a number = given.
Returns true if the string represents a number = given.
(greater-than? v n)
Returns true if the string represents a number > given.
Returns true if the string represents a number > given.
(has-value? v)
Returns true if v is truthy and not an empty string.
Returns true if v is truthy and not an empty string.
(has-values? coll)
Returns true if all members of the collection has-value? This works on maps as well.
Returns true if all members of the collection has-value? This works on maps as well.
(is-email? v)
Returns true if v is an email address
Returns true if v is an email address
(less-than? v n)
Returns true if the string represents a number < given.
Returns true if the string represents a number < given.
(matches-regex? v regex)
Returns true if the string matches the given regular expression
Returns true if the string matches the given regular expression
(max-length? v len)
Returns true if v is less than or equal to the given len
Returns true if v is less than or equal to the given len
(min-length? v len)
Returns true if v is greater than or equal to the given len
Returns true if v is greater than or equal to the given len
(not-nil? v)
Returns true if v is not nil
Returns true if v is not nil
(valid-number? v)
Returns true if the string can be parsed to a Long
Returns true if the string can be parsed to a Long
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close