UNPKG

hast-util-is-event-handler

Version:

hast utility to check if a property is an event handler

12 lines 341 B
/** * Check if a property is an event handler. * * Returns `true` when starting with `'on'` and its `length` is `5` or more. * * @param {string} name * Property name to check. * @returns {boolean} * Whether `name` is an event handler. */ export function isEventHandler(name: string): boolean; //# sourceMappingURL=index.d.ts.map