---
title: "JSPropertyNameArrayGetCount(_:)"
framework: javascriptcore
role: symbol
role_heading: Function
path: "javascriptcore/jspropertynamearraygetcount(_:)"
---

# JSPropertyNameArrayGetCount(_:)

Gets a count of the number of items in a JavaScript property name array.

## Declaration

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

## Parameters

- `array`: The array to retrieve the count from.

## Return Value

Return Value An integer count of the number of names in array.

## See Also

### Working with Properties

- [JSPropertyNameAccumulatorAddName(_:_:)](javascriptcore/jspropertynameaccumulatoraddname(_:_:).md)
- [JSPropertyNameArrayGetNameAtIndex(_:_:)](javascriptcore/jspropertynamearraygetnameatindex(_:_:).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)
