Description of the type checking.
import { is } from '@webalternatif/js-core'strany
Returns boolean
oany
Returns boolean
fany
Returns boolean
oany
Returns boolean
bany
Returns boolean
vany
Returns boolean
oany
Returns boolean
aany
Returns boolean
oany
Returns boolean
oany
Returns boolean
nany
Returns boolean
nany
Returns boolean
vany
Returns boolean
eventNamestring
Returns boolean
Returns boolean
Checks whether the given value is the global window object.
oany Value to test
isWindow(window) // true
isWindow(globalThis) // true (in browsers)Returns boolean true if the value is the browser window object
Checks whether the given value is the global document object.
oany Value to test
isDocument(document) // true (in browsers)
isDocument(window.document) // true (in browsers)
isDocument({document}) // falseReturns boolean true if the value is the browser document object
Checks whether the given value is a DOM Element.
oany Value to test
const el = document.createElement('div')
isDomElement(el) // trueReturns boolean true if the value is a DOM Element