MCPcopy 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
16export function isNativeFunction(fn) {
17 return typeof fn === 'function' ? fn.toString().indexOf('[native code]') > 0 : false;
18}
19
20export const identity = a => a;
21const indirectEval = eval;

Callers 1

mergeComponentsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected