The input stack frames to filter.
Optional filtering options (include/exclude matchers and preset).
The filtered list of stack frames, in original order.
Matching order:
exclude
(plus any entries added by preset
).include
is provided, a frame must match at least one include matcher to be kept.Matcher behavior
RegExp
: tested against frame.fileName ?? ''
.frame
and should return true
to indicate a match.
Filter an array of StackFrame entries using include/exclude matchers and presets.