UNPKG

vanillajs-browser-helpers

Version:

Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS in the browser

9 lines (8 loc) 262 B
declare const _default: (obj: unknown) => obj is EventTarget; /** * Is the given object a viable event target (implements the addEventListener function) * * @param obj - The object to check * @return Is it an Event Target or not */ export default _default;