UNPKG

391 BTypeScriptView Raw
1declare type FnType = Function;
2/**
3 * @name isFunction
4 * @summary Tests for a `function`.
5 * @description
6 * Checks to see if the input value is a JavaScript function.
7 * @example
8 * <BR>
9 *
10 * ```javascript
11 * import { isFunction } from '@polkadot/util';
12 *
13 * isFunction(() => false); // => true
14 * ```
15 */
16export declare function isFunction(value: unknown): value is FnType;
17export {};