MCPcopy
hub / github.com/binux/qiandao / isWindow

Function isWindow

web/static/components/angularjs/angular.js:640–642  ·  view source on GitHub ↗

* Checks if `obj` is a window object. * * @private * @param {*} obj Object to check * @returns {boolean} True if `obj` is a window obj.

(obj)

Source from the content-addressed store, hash-verified

638 * @returns {boolean} True if `obj` is a window obj.
639 */
640function isWindow(obj) {
641 return obj && obj.document && obj.location && obj.alert && obj.setInterval;
642}
643
644
645function isScope(obj) {

Callers 5

isArrayLikeFunction · 0.85
copyFunction · 0.85
equalsFunction · 0.85
toJsonReplacerFunction · 0.85
jqLiteAddNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected