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

Function isPlainArray

packages/query-core/src/utils.ts:341–343  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

339}
340
341export function isPlainArray(value: unknown): value is Array<unknown> {
342 return Array.isArray(value) && value.length === Object.keys(value).length
343}
344
345// Copied from: https://github.com/jonschlinkert/is-plain-object
346export function isPlainObject(o: any): o is Record<PropertyKey, unknown> {

Callers 2

utils.test.tsxFile · 0.90
replaceEqualDeepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected