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

Function isPlainArray

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

Source from the content-addressed store, hash-verified

354}
355
356export function isPlainArray(value: unknown): value is Array<unknown> {
357 return Array.isArray(value) && value.length === Object.keys(value).length
358}
359
360// Copied from: https://github.com/jonschlinkert/is-plain-object
361export 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