Documentation / @zerotal/devtools / client / matchesFilter
Function: matchesFilter()
matchesFilter(
trace,query):boolean
Defined in: devtools/src/client.ts:247
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
query
string
Returns
boolean