pub unsafe extern "C" fn JSObjectHasProperty(
    ctx: JSContextRef,
    object: JSObjectRef,
    propertyName: JSStringRef
) -> bool
Expand description

Tests whether an object has a given property.

  • object: The JSObject to test.
  • propertyName: A JSString containing the property’s name.

Returns true if the object has a property whose name matches propertyName, otherwise false.