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

Function isFunction

packages/vue-query/src/utils.ts:162–164  ·  view source on GitHub ↗

* Checks whether a value is a function. * @param value - The value to check. * @returns `true` if `value` is a function.

(value: unknown)

Source from the content-addressed store, hash-verified

160 * @returns `true` if `value` is a function.
161 */
162function isFunction(value: unknown): value is (...args: Array<any>) => any {
163 return typeof value === 'function'
164}
165
166/**
167 * Resolves `source` to a plain value — calls it if it's a function, otherwise deep-unwraps it.

Callers 2

cloneDeepUnrefFunction · 0.85
toValueDeepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected