---
title: "JSPropertyNameArrayGetNameAtIndex(_:_:)"
framework: javascriptcore
role: symbol
role_heading: Function
path: "javascriptcore/jspropertynamearraygetnameatindex(_:_:)"
---

# JSPropertyNameArrayGetNameAtIndex(_:_:)

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

## Declaration

```swift
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

Return Value A JSStringRef that contains the property name.

## See Also

### Working with Properties

- [JSPropertyNameAccumulatorAddName(_:_:)](javascriptcore/jspropertynameaccumulatoraddname(_:_:).md)
- [JSPropertyNameArrayGetCount(_:)](javascriptcore/jspropertynamearraygetcount(_:).md)
- [JSPropertyNameArrayRelease(_:)](javascriptcore/jspropertynamearrayrelease(_:).md)
- [JSPropertyNameArrayRetain(_:)](javascriptcore/jspropertynamearrayretain(_:).md)
- [JSPropertyAttributes](javascriptcore/jspropertyattributes.md)
- [JSPropertyAttribute](javascriptcore/jspropertyattribute.md)
- [JSPropertyNameArrayRef](javascriptcore/jspropertynamearrayref.md)
- [JSPropertyNameAccumulatorRef](javascriptcore/jspropertynameaccumulatorref.md)
