the actual value of this ValueObject
Static
createa Result
with the created SafeBoolean
to create the SafeBoolean of
Optional
options: SafeBooleanOptionsconstraints the value has to fulfill
Static
froma Result
with an array of created SafeBooleans
an array of primitives to map to an array of SafeBooleans
Optional
options: SafeBooleanOptions & ListCreationOptionsconstraints the values / list has to fulfill
Static
listcompares 2 Lists of ValueObjects / values on equality
true if the lists are equal
the list of ValueObjects to compare with
a list of ValueObjects / values for comparison
Static
tothe array of values
an array of SafeBooleans to map to an array of their values
Static
validatethe value if the validation was successful
if undefined (and not allowed to)
if not a (parsable) boolean
to be validated as a valid boolean / string representation of a boolean
Optional
options: SafeBooleanOptionsconstraints the value has to fulfill
Generated using TypeDoc
A Boolean that is definitely a Boolean that (with options) can be undefined or a string
Example
Fails