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

Function isFunction

packages/vue-query/src/utils.ts:109–111  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

107}
108
109function isFunction(value: unknown): value is Function {
110 return typeof value === 'function'
111}
112
113export function toValueDeep<T>(source: (() => T) | MaybeRefDeep<T>): T {
114 return isFunction(source) ? source() : cloneDeepUnref(source)

Callers 2

cloneDeepUnrefFunction · 0.85
toValueDeepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected