Function

JSObjectHasProperty(_:_:_:)

Tests whether an object has a given property.

Declaration

func JSObjectHasProperty(_ ctx: JSContextRef!, _ object: JSObjectRef!, _ propertyName: JSStringRef!) -> Bool

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.