---
title: allValues
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsdictionary/allvalues
---

# allValues

A new array containing the dictionary’s values, or an empty array if the dictionary has no entries.

## Declaration

```swift
var allValues: [Any] { get }
```

## Discussion

Discussion The order of the values in the array isn’t defined.

## See Also

### Accessing Keys and Values

- [allKeys](foundation/nsdictionary/allkeys.md)
- [allKeys(for:)](foundation/nsdictionary/allkeys(for:).md)
- [value(forKey:)](foundation/nsdictionary/value(forkey:).md)
- [objects(forKeys:notFoundMarker:)](foundation/nsdictionary/objects(forkeys:notfoundmarker:).md)
- [object(forKey:)](foundation/nsdictionary/object(forkey:).md)
- [subscript(_:)](foundation/nsdictionary/subscript(_:)-52n56.md)
- [subscript(_:)](foundation/nsdictionary/subscript(_:)-1bt1b.md)
