Liking cljdoc? Tell your friends :D

spec-validate.predicates


*default-phone-number-region-code*

source

absolute-url?

Returns true if the provided value is a string representing an absolute URL, else returns false.

Returns true if the provided value is a string representing an absolute URL,
else returns false.
sourceraw docstring

boolean?

Returns true if the provided value is a boolean, else returns false.

Returns true if the provided value is a boolean, else returns false.
sourceraw docstring

content?

Returns true if the provided value is a string containing non-whitespace characters, else returns false.

Returns true if the provided value is a string containing non-whitespace
characters, else returns false.
sourceraw docstring

currency-amount?

Returns true if the provided value is a string representing a currency amount, else returns false.

Returns true if the provided value is a string representing a currency
amount, else returns false.
sourceraw docstring

currency-code?

Returns true if the provided value is a string representing a currency code, else returns false.

Returns true if the provided value is a string representing a currency
code, else returns false.
sourceraw docstring

digits?

Returns true if the provided value is a string containing only the digits 0-9, else returns false.

Returns true if the provided value is a string containing only the digits
0-9, else returns false.
sourceraw docstring

email-address?

Returns true if the email address is valid, based on RFC 2822. Email addresses containing quotation marks or square brackets are considered invalid, as this syntax is not commonly supported in practise. The domain of the email address is not checked for validity.

Returns true if the email address is valid, based on RFC 2822. Email
addresses containing quotation marks or square brackets are considered
invalid, as this syntax is not commonly supported in practise. The domain of
the email address is not checked for validity.
sourceraw docstring

integer?

Returns true if the provided value is an integer, else returns false.

Returns true if the provided value is an integer, else returns false.
sourceraw docstring

iso8601-datetime?

Returns true if the provided value is a string representing an ISO8601 datetime, else returns false.

Returns true if the provided value is a string representing an ISO8601
datetime, else returns false.
sourceraw docstring

length-equal-to-10?

source

length-equal-to-1?

source

length-equal-to-2?

source

length-equal-to-3?

source

length-equal-to-4?

source

length-equal-to-5?

source

length-equal-to-6?

source

length-equal-to-7?

source

length-equal-to-8?

source

length-equal-to-9?

source

length-equal-to?

(length-equal-to? length)
source

length-greater-than-10?

source

length-greater-than-1?

source

length-greater-than-2?

source

length-greater-than-3?

source

length-greater-than-4?

source

length-greater-than-5?

source

length-greater-than-6?

source

length-greater-than-7?

source

length-greater-than-8?

source

length-greater-than-9?

source

length-greater-than?

(length-greater-than? length)
source

length-less-than-10?

source

length-less-than-1?

source

length-less-than-2?

source

length-less-than-3?

source

length-less-than-4?

source

length-less-than-5?

source

length-less-than-6?

source

length-less-than-7?

source

length-less-than-8?

source

length-less-than-9?

source

length-less-than?

(length-less-than? length)
source

negative?

Returns true if the provided value is a positive number or a string representing a positive number, else returns false.

Returns true if the provided value is a positive number or a string
representing a positive number, else returns false.
sourceraw docstring

not-empty?

Returns true if the provided value has a count of at least 1, else returns false.

Returns true if the provided value has a count of at least 1,
else returns false.
sourceraw docstring

phone-number?

Returns true if the provided value is a string representing a phone number, else returns false. By default, treats phone numbers as being from Great Britain, however the default region can be overridden with *default-phone-number-region-code*.

Returns true if the provided value is a string representing a phone number,
else returns false. By default, treats phone numbers as being from
Great Britain, however the default region can be overridden with
`*default-phone-number-region-code*`.
sourceraw docstring

positive?

Returns true if the provided value is a positive number or a string representing a positive number, else returns false.

Returns true if the provided value is a positive number or a string
representing a positive number, else returns false.
sourceraw docstring

postcode?

Returns true if the provided value is a string representing a UK postcode, else returns false.

Returns true if the provided value is a string representing a UK postcode,
else returns false.
sourceraw docstring

string?

Returns true if the provided value is a string, else returns false.

Returns true if the provided value is a string, else returns false.
sourceraw docstring

uuid-v4?

Returns true if the provided value is a string representing a v4 UUID, else returns false.

Returns true if the provided value is a string representing a v4 UUID,
else returns false.
sourceraw docstring

zero?

Returns true if the provided value is zero or a string representing zero, else returns false.

Returns true if the provided value is zero or a string representing zero,
else returns false.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close