@monstermann/fn
Version:
A utility library for TypeScript.
22 lines • 468 B
TypeScript
//#region src/function/isFunction.d.ts
/**
* `isFunction(target)`
*
* Checks if a value is a function.
*
* ```ts
* isFunction(() => {}); // true
* isFunction("not a function"); // false
* ```
*
* ```ts
* pipe(() => {}, isFunction()); // true
* pipe("not a function", isFunction()); // false
* ```
*/
declare const isFunction: {
(): (target: unknown) => target is Function;
(target: unknown): target is Function;
};
//#endregion
export { isFunction };