MCPcopy Index your code
hub / github.com/angular-ui/ui-router / isWindow

Function isWindow

test/angular/1.2/angular.js:642–644  ·  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

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

Callers 5

isArrayLikeFunction · 0.70
copyFunction · 0.70
equalsFunction · 0.70
toJsonReplacerFunction · 0.70
jqLiteAddNodesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected