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

# isSubset(of:)

Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given ordered set.

## Declaration

```swift
func isSubset(of other: NSOrderedSet) -> Bool
```

## Parameters

- `other`: The ordered set with which to compare the receiving ordered set.

## Return Value

Return Value true if every object in the receiving set is also present in other, otherwise false.

## See Also

### Comparing Sets

- [isEqual(to:)](foundation/nsorderedset/isequal(to:).md)
- [intersects(_:)](foundation/nsorderedset/intersects(_:).md)
- [intersectsSet(_:)](foundation/nsorderedset/intersectsset(_:).md)
- [isSubset(of:)](foundation/nsorderedset/issubset(of:)-8zx9x.md)
