Is Dom
Check if the given object is a dom node.
Install
# npm
npm install --save-dev @elonehoo/is-dom
# yarn
yarn add --dev @elonehoo/is-dom
# pnpm
pnpm install --save-dev @elonehoo/is-dom
Usage
import isDom from '@elonehoo/is-dom'
isDom(window.document)
License
MIT License © 2022-PRESENT Elone Hoo