parseBool method
Implementation
bool parseBool() {
if (isA<JSBoolean>()) {
return (this as JSBoolean).toDart;
}
if (isA<JSNumber>()) {
return (this as JSNumber).toDartInt == 1;
}
return false;
}
bool parseBool() {
if (isA<JSBoolean>()) {
return (this as JSBoolean).toDart;
}
if (isA<JSNumber>()) {
return (this as JSNumber).toDartInt == 1;
}
return false;
}