---
title: "JSPropertyNameArrayRetain(_:)"
framework: javascriptcore
role: symbol
role_heading: Function
path: "javascriptcore/jspropertynamearrayretain(_:)"
---

# JSPropertyNameArrayRetain(_:)

Retains a JavaScript property name array.

## Declaration

```swift
func JSPropertyNameArrayRetain(_ array: JSPropertyNameArrayRef!) -> JSPropertyNameArrayRef!
```

## Parameters

- `array`: The doc://com.apple.javascriptcore/documentation/JavaScriptCore/JSPropertyNameArrayRef to retain.

## Return Value

Return Value A JSPropertyNameArrayRef that is the same as array.

## See Also

### Working with Properties

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