Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gaearon/react-hot-loader
/ isNativeFunction
Function
isNativeFunction
src/proxy/utils.js:16–18 ·
view source on GitHub ↗
(fn)
Source
from the content-addressed store, hash-verified
14
}
15
16
export
function
isNativeFunction(fn) {
17
return
typeof fn ===
'function'
? fn.toString().indexOf(
'[native code]'
) > 0 : false;
18
}
19
20
export
const
identity = a => a;
21
const
indirectEval = eval;
Callers
1
mergeComponents
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected