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

Function isPlainArray

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

Source from the content-addressed store, hash-verified

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

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