Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 248 Bytes

is-function.md

File metadata and controls

17 lines (14 loc) · 248 Bytes

isFunction

/*
isFunction(val: unknown): boolean
*/

/**
 * Checks that a value is function
 */

// Examples
isFunction(() => {});// true
isFunction(function(){});// true
isFunction(new Function());// true
isFunction(class{});// true