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

Function isIterable

packages/query-devtools/src/Explorer.tsx:457–459  ·  view source on GitHub ↗

* Checks whether a value is iterable. * @param x - The value to check. * @returns `true` if `x` has a `Symbol.iterator` method.

(x: any)

Source from the content-addressed store, hash-verified

455 * @returns `true` if `x` has a `Symbol.iterator` method.
456 */
457function isIterable(x: any): x is Iterable<unknown> {
458 return Symbol.iterator in x
459}
460
461/**
462 * Renders an expandable tree view of a value, used to explore a query's data in the devtools. It

Callers 1

ExplorerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected