Skip to content

The open alternative to Salesforce, designed for AI.

230 B
Raw Blame
import { isFunction, isObject } from '@sniptt/guards';

export const isDispatchableEventTarget = (
  value: unknown,
): value is EventTarget =>
  isObject(value) &&
  'dispatchEvent' in value &&
  isFunction(value.dispatchEvent);