UNPKG

@the-goat/core

Version:

![npm version](https://badgen.net/npm/v/@the-goat/goat?icon=npm) ![npm downloads](https://badgen.net/npm/dt/@the-goat/goat?icon=npm) ![npm weekly downloads](https://badgen.net/npm/dw/@the-goat/goat?icon=npm) ![npm licence](https://badgen.net/npm/license/@

9 lines (8 loc) 256 B
export = matchEvent; /** * Check if the current event matches the watched events * @param {String} currentEvent * @param {RegExp|Array} events * @returns {Boolean} */ declare function matchEvent(currentEvent: string, events: RegExp | any[]): boolean;