toBoolean

Common
JVM
JS
Native
1.0
fun String.toBoolean(): Boolean

Returns true if the contents of this string is equal to the word "true", ignoring case, and false otherwise.