MCPcopy Create free account
hub / github.com/TanStack/query / isPlainObject

Function isPlainObject

packages/vue-query/src/utils.ts:100–107  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

98
99// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types
100function isPlainObject(value: unknown): value is Object {
101 if (Object.prototype.toString.call(value) !== '[object Object]') {
102 return false
103 }
104
105 const prototype = Object.getPrototypeOf(value)
106 return prototype === null || prototype === Object.prototype
107}
108
109function isFunction(value: unknown): value is Function {
110 return typeof value === 'function'

Callers 1

_cloneDeepFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected