Convert the input string to a boolean. Everything except for '0', 'false' and '' returns true.
'0'
'false'
''
true
Optional
in strict mode, only '1' and 'true' return true.
strict
'1'
'true'
Generated using TypeDoc
Convert the input string to a boolean. Everything except for
'0'
,'false'
and''
returnstrue
.