pub unsafe extern "C-unwind" fn JSObjectHasPropertyForKey(
ctx: JSContextRef,
object: JSObjectRef,
property_key: JSValueRef,
exception: *mut JSValueRef,
) -> boolAvailable on crate features
JSBase and JSObjectRef only.Expand description
Tests whether an object has a given property using a JSValueRef as the property key.
Parameter object: The JSObject to test.
Parameter propertyKey: A JSValueRef containing the property key to use when looking up the property.
Parameter exception: A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
Returns: true if the object has a property whose name matches propertyKey, otherwise false.
This function is the same as performing “propertyKey in object” from JavaScript.
§Safety
ctxmust be a valid pointer.objectmust be a valid pointer.property_keymust be a valid pointer.exceptionmust be a valid pointer.