parseBool method

bool parseBool()

Implementation

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