MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / isChildWindowKey

Function isChildWindowKey

src/injected/web/gm-global-wrapper.js:64–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62const inheritedDesc = createNullObj();
63
64const isChildWindowKey = key => isString(key) /* skipping Symbol as it throws on conversion */
65 && (key = +key) >= 0 /* is number */
66 && (key === (key | 0)) /* is 32-bit integer, no fraction */
67 && key < window::getWindowLength();
68
69const updateGlobalDesc = name => {
70 let src;

Callers 2

updateGlobalDescFunction · 0.85
proxyDescribeFunction · 0.85

Calls 1

isStringFunction · 0.85

Tested by

no test coverage detected