hasProperty method
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;
}