---
title: "filter(using:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsmutablearray/filter(using:)"
---

# filter(using:)

Evaluates a given predicate against the array’s content and leaves only objects that match.

## Declaration

```swift
func filter(using predicate: NSPredicate)
```

## Parameters

- `predicate`: The predicate to evaluate against the array’s elements.

## See Also

### Related Documentation

- [filtered(using:)](foundation/nsarray/filtered(using:).md)
