Lamina.Cast.to_boolean
You're seeing just the function
to_boolean
, go back to Lamina.Cast module for more information.
Link to this function
to_boolean(value)
Specs
Attempt to convert the inbound value into a boolean.
Things that are considered true:
- A literal
true
. - The words "true" or "yes" in any capitalisation.
Everything else is false.