toBoolean constant
String
const toBoolean
Converts the input value to a boolean. The result is false
when then
input is an empty string, 0, false
, null
, or NaN
; otherwise it
is true
.
Sdk Support: basic functionality with js, android, ios, macos
Implementation
static const toBoolean = "to-boolean";