---
title: "add(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nshashtable/add(_:)"
---

# add(_:)

Adds a given object to the hash table.

## Declaration

```swift
func add(_ object: ObjectType?)
```

## Parameters

- `object`: The object to add to the hash table.

## See Also

### Manipulating Membership

- [remove(_:)](foundation/nshashtable/remove(_:).md)
- [removeAllObjects()](foundation/nshashtable/removeallobjects().md)
