has method - JSObjectUnsafeUtilExtension extension - dart:js_interop_unsafe library (original) (raw)
bool has(
- String property )
Shorthand helper for hasProperty to check whether this JSObjectcontains the property key property
, but takes and returns a Dart value.
Implementation
bool has(String property) => hasProperty(property.toJS).toDart;