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

# intersects(_:)

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

## Declaration

```swift
func intersects(_ other: NSOrderedSet) -> Bool
```

## Parameters

- `other`: The other ordered set.

## Return Value

Return Value true if at least one object in the receiving ordered set is also present in other, otherwise false.

## See Also

### Comparing Sets

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