pub unsafe extern "C" fn JSObjectHasProperty(
ctx: JSContextRef,
object: JSObjectRef,
propertyName: JSStringRef,
) -> bool
Expand description
Tests whether an object has a given property.
object
: TheJSObjectRef
to test.propertyName
: AJSStringRef
containing the property’s name.
Returns true
if the object has a property whose name matches
propertyName
, otherwise false
.