Skip to content

basalt / webhooks/src / matchesEvent

Function: matchesEvent() ​

> matchesEvent(patterns, event): boolean

Defined in: webhooks/src/store.ts:27

True when event matches any of the endpoint's patterns.

Parameters ​

patterns ​

string[]

event ​

string

Returns ​

boolean

Released under the MIT License.