Contents

JSObjectCopyPropertyNames(_:_:)

Gets the names of an object’s enumerable properties.

Declaration

func JSObjectCopyPropertyNames(_ ctx: JSContextRef!, _ object: JSObjectRef!) -> JSPropertyNameArrayRef!

Parameters

  • ctx:

    The execution context to use.

  • object:

    The object with the property names you want to get.

Return Value

A JSPropertyNameArrayRef that contains the names of the object’s enumerable properties. Ownership follows The Create Rule.

See Also

Working with Objects