UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

10 lines (9 loc) 259 B
import { isElement } from '../dom/api'; import { isObject } from '../misc/object'; export function resolveDomTarget(obj) { if (isElement(obj)) return obj; if (isObject(obj) && isElement(obj.$host)) return obj.$host; return null; }