hasProperty method

bool hasProperty(
  1. String propertyName
)

Tests whether an object has a given property. propertyName (JSStringRef) A JSString containing the property's name.

Implementation

bool hasProperty(String propertyName) {
  return JSObjectRef.jSObjectHasProperty(context.pointer, pointer,
          JSString.fromString(propertyName).pointer) ==
      1;
}