JSObjectHasProperty top-level property
bool Function(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName)
JSObjectHasProperty
final
Tests whether an object has a given property.
object
The JSObject to test.
propertyName
A JSString containing the property's name.
@result
true if the object has a property whose name matches propertyName, otherwise false.
Implementation
final bool Function(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName) JSObjectHasProperty =
jscLib.lookup<NativeFunction<Bool Function(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName)>>('JSObjectHasProperty').asFunction();