Liking cljdoc? Tell your friends :D
All platforms.

utilis.types.bool


->booleanclj/s

(->boolean v)
(->boolean v default)

Attempts to convert 'v' to a boolean. Strings equal to 'true' and 'false' will be coerced to their equivalent boolean value. If 'v' cannot be converted, an optional 'default' value is returned.

If no default is specified, a nil is used as the default

Attempts to convert 'v' to a boolean. Strings equal to 'true' and 'false'
will be coerced to their equivalent boolean value. If 'v' cannot be converted,
an optional 'default' value is returned.

If no default is specified, a nil is used as the default
raw docstring

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

× close