Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/getsentry/sentry-javascript
/ isFunction
Function
isFunction
packages/browser/src/helpers.ts:73–75 ·
view source on GitHub ↗
(fn: T | NonFunction)
Source
from the content-addressed store, hash-verified
71
// wrapped.__sentry_original__ -> original
72
73
function
isFunction(fn: T | NonFunction): fn is T {
74
return
typeof fn ===
'function'
;
75
}
76
77
if
(!isFunction(fn)) {
78
return
fn;
Callers
1
wrap
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected