MCPcopy
hub / github.com/youzan/vant / isFunction

Function isFunction

packages/vant/src/utils/basic.ts:21–22  ·  view source on GitHub ↗
(val: unknown)

Source from the content-addressed store, hash-verified

19
20// eslint-disable-next-line @typescript-eslint/ban-types
21export const isFunction = (val: unknown): val is Function =>
22 typeof val === 'function';
23
24export const isPromise = <T = any>(val: unknown): val is Promise<T> =>
25 isObject(val) && isFunction(val.then) && isFunction(val.catch);

Callers 5

createTranslateFunction · 0.90
getRuleMessageFunction · 0.90
isOversizeFunction · 0.90
renderMessageFunction · 0.90
isPromiseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…