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

Function isPlainArray

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

Source from the content-addressed store, hash-verified

463 * @returns `true` if `value` is an array whose number of own keys equals its `length`.
464 */
465export function isPlainArray(value: unknown): value is Array<unknown> {
466 return Array.isArray(value) && value.length === Object.keys(value).length
467}
468
469// Copied from: https://github.com/jonschlinkert/is-plain-object
470/**

Callers 3

utils.test-d.tsxFile · 0.90
utils.test.tsxFile · 0.90
replaceEqualDeepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected