refIsElement
Verifies that a ref is a single Element
and nothing else.
export function refIsElement(value: unknown): value is Element;
value
- The value to type check.
Returns true
if the ref is an Element
, otherwise false.
Verifies that a ref is a single Element
and nothing else.
export function refIsElement(value: unknown): value is Element;
value
- The value to type check.Returns true
if the ref is an Element
, otherwise false.