MCPcopy Create free account
hub / github.com/ampproject/amphtml / isWindow

Function isWindow

third_party/inputmask/inputmask.dependencyLib.js:19–21  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

17 return -1;
18 }
19 function isWindow(obj) {
20 return obj != null && obj === obj.window;
21 }
22 function isArraylike(obj) {
23 var length = "length" in obj && obj.length, ltype = typeof obj;
24 if (ltype === "function" || isWindow(obj)) {

Callers 3

isArraylikeFunction · 0.85
getWindowFunction · 0.85
factoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected