MCPcopy 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

1const toString = Object.prototype.toString
2
3export default function isObject(thing: unknown): thing is Record<string, any> {
4 return toString.call(thing) === '[object Object]'
5}

Callers 2

addSourceMethod · 0.50
indentMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected