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 function isObject(thing: unknown): thing is Record<string, any> {
4 return toString.call(thing) === '[object Object]'
5}

Callers 3

addSourceMethod · 0.90
indentMethod · 0.90
isObject.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected