Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Rich-Harris/magic-string
/ isObject
Function
isObject
src/utils/isObject.ts:3–5 ·
view source on GitHub ↗
(thing: unknown)
Source
from the content-addressed store, hash-verified
1
const
toString = Object.prototype.toString
2
3
export
default
function
isObject(thing: unknown): thing is Record<string, any> {
4
return
toString.call(thing) ===
'[object Object]'
5
}
Callers
2
addSource
Method · 0.50
indent
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected