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
1
2
3

Parameters:

Name Type
value any

Returns: boolean


Last Updated: 2/26/2019, 11:50:54 AM