hasProperty method

bool hasProperty(
  1. JSObject obj,
  2. String name
)

Implementation

bool hasProperty(JSObject obj, String name) {
  try {
    return js_util.hasProperty(obj, name);
  } catch (e) {
    return false;
  }
}