UNPKG

is-what

Version:

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

5 lines (4 loc) 150 B
/** Returns whether the payload is a function (regular or async) */ export function isFunction(payload) { return typeof payload === 'function'; }