@polkadot/util
Version:
A collection of useful utilities for @polkadot
18 lines (17 loc) • 383 B
TypeScript
type FnType = Function;
/**
* @name isFunction
* @summary Tests for a `function`.
* @description
* Checks to see if the input value is a JavaScript function.
* @example
* <BR>
*
* ```javascript
* import { isFunction } from '@polkadot/util';
*
* isFunction(() => false); // => true
* ```
*/
export declare function isFunction(value: unknown): value is FnType;
export {};