has method - JSObjectUnsafeUtilExtension extension - dart:js_interop_unsafe library (original) (raw)

description

bool has(

  1. 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;