Determines whether the provided value is callable.
Callable values include normal functions, arrow functions, and bound functions. ES6 class constructors are not callable without new, so this function returns false for classes.
new
false
function () {}
true
() => {}
function () {}.bind()
class {}
class A extends B {}
class A {}
The value to be checked.
true if the value is callable, otherwise false.
1.0
Determines whether the provided value is callable.
Callable values include normal functions, arrow functions, and bound functions. ES6 class constructors are not callable without
new, so this function returnsfalsefor classes.function () {}true() => {}truefunction () {}.bind()trueclass {}falseclass A extends B {}falseclass A {}false