Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ZTFtrue/My-note
/ getGlobalObject
Function
getGlobalObject
web-devlope/call.js:1–3 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
function
getGlobalObject(){
2
return
this;
3
}
4
Function.prototype.callFn =
function
call(thisArg, ...args){
5
if
(typeof this !==
'function'
){
6
// 不一定是函数调用, 比如 Object.prototype=unction.prototype.callFn ;
Callers
1
call.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected