Skip to main content
Module

x/polkadot/util/is/function.ts

Package publishing for deno.land/x/polkadot
Go to Latest
File

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 'https://deno.land/x/polkadot@0.2.40/util/mod.ts'; * * isFunction(() => false); // => true * ``` */export function isFunction (value: unknown): value is FnType { return typeof value === 'function';}