Vanilla JavaScript utils collection.
npm install @vjscc/utils -S
-
Or some CDN service supported github like jsdelivr.
-
Or visit github releases page to download dist zip.
import utility funcions and call them as you wish.
// ESM
import { isHTMLElement } from '@vjscc/utils'
const random1 = isHTMLElement(document.body)
// CommonJS
const { isHTMLElement } = require('@vjscc/utils')
const random2 = isHTMLElement(document.body)
// From window
const { isHTMLElement } = window.VjsccUtils
const random3 = isHTMLElement(document.body)
MIT