---
title: anyObject
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nshashtable/anyobject
---

# anyObject

One of the objects in the hash table.

## Declaration

```swift
var anyObject: ObjectType? { get }
```

## Discussion

Discussion One of the objects in the hash table, or nil if the hash table contains no objects. The object returned is chosen at the hash table’s convenience—the selection is not guaranteed to be random.

## See Also

### Accessing Content

- [allObjects](foundation/nshashtable/allobjects.md)
- [setRepresentation](foundation/nshashtable/setrepresentation.md)
- [count](foundation/nshashtable/count.md)
- [contains(_:)](foundation/nshashtable/contains(_:).md)
- [member(_:)](foundation/nshashtable/member(_:).md)
- [objectEnumerator()](foundation/nshashtable/objectenumerator().md)
