---
title: .filter()
slug: filter
docTags: 
createdAt: 2021-09-14T16:37:07.000Z
---

### Description

This method, called on a List or Sequence, filters the results to only those results that match the expression.

- Operates on: [List](docId\:xWH_cUkHj9waqaEfb7H71) or [Sequence](docId\:JG4itlQWafzLpArttFo67) &#x20;
- Returns: [List](docId\:xWH_cUkHj9waqaEfb7H71) or [Sequence](docId\:JG4itlQWafzLpArttFo67)&#x20;

### Syntax

`.filter{expression}`

- Returns only those objects that match the expression.

### Examples

`grants.filter{price > 1.50}`

- Of the [Grants](docId\:Lpx5L8w1t54iPBqq8Eqjv) issued to the current person, only return those stock grants where the strike price is over $1.50.

