Skip to content

toBoolean

Category: Conversion

Converts the input value to a boolean

  • Return type: Boolean
'true'.toBoolean()
1.toBoolean()
'false'.toBoolean()