---
title: "isSubset(of:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nshashtable/issubset(of:)"
---

# isSubset(of:)

Returns a Boolean value that indicates whether every element in the receiving hash table is also present in another given hash table.

## Declaration

```swift
func isSubset(of other: NSHashTable<ObjectType>) -> Bool
```

## Parameters

- `other`: The hash table with which to compare the receiving hash table.

## Return Value

Return Value true if every element in the receiving hash table is also present in other, otherwise false.

## Discussion

Discussion The equality test used for members depends on the personality option selected. For instance, choosing the objectPersonality option will use isEqual: to determine equality. See NSPointerFunctions.Options for more information on personality options and their corresponding equality tests.

## See Also

### Comparing Hash Tables

- [intersect(_:)](foundation/nshashtable/intersect(_:).md)
- [intersects(_:)](foundation/nshashtable/intersects(_:).md)
- [isEqual(to:)](foundation/nshashtable/isequal(to:).md)
