<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "JavaScriptCore",
  "identifier" : "/documentation/JavaScriptCore/JSPropertyNameArrayGetNameAtIndex(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "JavaScriptCore"
    ],
    "preciseIdentifier" : "c:@F@JSPropertyNameArrayGetNameAtIndex"
  },
  "title" : "JSPropertyNameArrayGetNameAtIndex(_:_:)"
}
-->

# JSPropertyNameArrayGetNameAtIndex(_:_:)

Gets a property name at a specified index in a JavaScript property name array.

```
func JSPropertyNameArrayGetNameAtIndex(_ array: JSPropertyNameArrayRef!, _ index: Int) -> JSStringRef!
```

## Parameters

`array`

The array to retrieve the property name from.

`index`

The index of the property name to retrieve.

## Return Value

A [`JSStringRef`](/documentation/JavaScriptCore/JSStringRef) that contains the property name.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)