W3cubDocs

/jQuery

jQuery.isWindow()

jQuery.isWindow( obj )Returns: booleanversion deprecated: 3.3, removed: 4.0

Description: Determine whether the argument is a window.

Note: This API has been deprecated in jQuery 3.3; if you need this function, reimplement it by yourself:

function isWindow( obj ) { return obj != null && obj === obj.window; }

This is used in a number of places in jQuery to determine if we're operating against a browser window (such as the current window or an iframe).

© The jQuery Foundation and other contributors
Licensed under the MIT License.
https://api.jquery.com/jQuery.isWindow