Function

JSObjectCopyPropertyNames

Gets the names of an object’s enumerable properties.

Declaration

JSPropertyNameArrayRef JSObjectCopyPropertyNames(JSContextRef ctx, JSObjectRef object);

Parameters

ctx

The execution context to use.

object

The object whose property names you want to get.

Return Value

A JSPropertyNameArray containing the names object's enumerable properties. Ownership follows the Create Rule.