Skip to content

Function: compileSubjectMatcher()

ts
function compileSubjectMatcher(patterns): ((subject) => boolean) | null;

Defined in: glide-mq/src/utils.ts:850

Compile an array of subject patterns into a single matcher function. Returns a function that returns true if the subject matches any pattern. Returns null if patterns is empty or undefined (no filtering).

Parameters

ParameterType
patternsstring[] | undefined

Returns

((subject) => boolean) | null

Released under the Apache-2.0 License.