UNPKG

vanillajs-browser-helpers

Version:

Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS in the browser

9 lines (8 loc) 249 B
import type { GeneralWindow } from './shared/types'; /** * Is the given object a Window object * * @param obj - The object to check * @return Is it a Window object or not */ export default function isWindow(obj: unknown): obj is GeneralWindow;