Files
common/docs/util/modules/_is_function_.md
T
2019-02-26 15:09:10 +00:00

590 B

Functions

isFunction

▸ isFunction(value: any): boolean

Defined in is/function.ts:19

name: isFunction

summary: Tests for a function.

description: Checks to see if the input value is a JavaScript function.

example:

import { isFunction } from '@polkadot/util';

isFunction(() => false); // => true

Parameters:

Name Type
value any

Returns: boolean