@xmldom/is-dom-node

TypeScript helper functions to narrow the type of object to a Node descendant

narrows

Super lean and simple object validation with TypeScript support.