Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS
vanillajs-helpers > “isFunction”
► isFunction(obj: any
): boolean
Defined in isFunction.ts:12
Is the given object a Function
isFunction(() => {}); // -> true
isFunction('string'); // -> false
Parameters:
Param | Type | Description |
---|---|---|
obj | any |
Object to test |
Returns: boolean