vanillajs-helpers

Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS

View the Project on GitHub Tokimon/vanillajs-helpers

vanillajs-helpers > “isFunction”

External module: “isFunction”

Index

Functions


Functions

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