Function

JSObjectHasProperty

Tests whether an object has a given property.

Declaration

bool JSObjectHasProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName);

Parameters

object

The JSObject to test.

propertyName

A JSString containing the property's name.

Return Value

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