UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

14 lines 404 B
//#region src/compat/predicate/isElement.d.ts /** * Checks if `value` is likely a DOM element. * * @param value The value to check. * @returns Returns `true` if `value` is a DOM element, else `false`. * * @example * console.log(isElement(document.body)); // true * console.log(isElement('<body>')); // false */ declare function isElement(value?: any): boolean; //#endregion export { isElement };