MCPcopy
hub / github.com/shipshapecode/shepherd / isElement

Function isElement

shepherd.js/src/utils/type-check.ts:5–7  ·  view source on GitHub ↗
(value: T | Element)

Source from the content-addressed store, hash-verified

3 * @param value The param to check if it is an Element
4 */
5export function isElement<T>(value: T | Element): value is Element {
6 return value instanceof Element;
7}
8
9/**
10 * Checks if `value` is classified as an `HTMLElement`.

Callers 1

_scrollToMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected