Skip to content

isWindow ​

Determine whether the input value is the global window object.

Usage ​

ts
import { isWindow } from 'rattail'

isWindow(window) // return true
isWindow({}) // return false

Arguments ​

ArgTypeDefaults
valueany

Return ​

Type
boolean