is-dom DOM Node Check
JSON →The `is-dom` package provides a minimalist utility function to determine if a given JavaScript object is a DOM node. It offers a single export, `isDom`, which returns `true` for valid DOM nodes (like `document`, `HTMLElement` instances, `Text` nodes, etc.) and `false` otherwise. This library is currently at version 1.1.0 and, given its focused scope, typically experiences a very slow release cadence, with updates primarily for bug fixes or compatibility adjustments rather than new features. Its key differentiator is its extreme simplicity and singular purpose, avoiding larger DOM manipulation libraries when only a type check is required. It's often used in environments where direct DOM access is available, such as browsers or Node.js with a JSDOM environment, to ensure operations are performed on actual DOM elements.
Traffic · last 30 days ↑33% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇮 Finland · 🇩🇪 Germany