UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

10 lines (8 loc) 255 B
// @ts-nocheck import { Window } from '../types'; /** * @param element */ export default function getNodeName(element: (Node | null | undefined) | Window): string | null | undefined { return element ? (element.nodeName || '').toLowerCase() : null; }