Returns a boolean corresponding to the given value as follows:
null
undefined
false
"false"
""
true
"true"
Note that an empty string is treated as true.
LisnUsageError If the value is not a valid boolean or boolean string.
undefined if the input is nullish.
Returns a boolean corresponding to the given value as follows:
null
andundefined
result inundefined
false
and"false"
result infalse
""
,true
and"true"
result intrue
Note that an empty string is treated as
true
.Throws
LisnUsageError If the value is not a valid boolean or boolean string.