toBoolean
toBoolean()
Section titled “toBoolean()”Category: Conversion
Converts the input value to a boolean
Signature
Section titled “Signature”- Return type:
Boolean
Examples
Section titled “Examples”'true'.toBoolean()1.toBoolean()'false'.toBoolean()