MCPcopy
hub / github.com/TanStack/query / isPlainArray

Function isPlainArray

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

Source from the content-addressed store, hash-verified

321}
322
323export function isPlainArray(value: unknown): value is Array<unknown> {
324 return Array.isArray(value) && value.length === Object.keys(value).length
325}
326
327// Copied from: https://github.com/jonschlinkert/is-plain-object
328export 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…