UNPKG

is-what

Version:

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.

4 lines (3 loc) 197 B
export type AnyFunction = (...args: any[]) => any; /** Returns whether the payload is a function (regular or async) */ export declare function isFunction(payload: unknown): payload is AnyFunction;