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