[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/devtools](../../README) / [client](../README) / matchesFilter

# Function: matchesFilter()

> **matchesFilter**(`trace`, `query`): `boolean`

Defined in: [devtools/src/client.ts:247](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/devtools/src/client.ts#L247)

Match a trace against the All tab's filter box.

Every space-separated term has to match, so `posts 500` narrows twice rather
than widening — a filter that ORs its terms gets less useful the more you type.
The haystack covers what you would search a request list by: method, path,
status, and the route it matched.

Exported because it is the only part of the panel that is logic rather than
markup, and it is worth testing without a DOM.

## Parameters

### trace

[`RequestTrace`](../../index/interfaces/RequestTrace)

### query

`string`

## Returns

`boolean`
