Answers for "javascript is function"

3

js is function

if(typeof test === "function") {
  console.log('test is a function');
}else {
  console.log('test is not a function');
}
Posted by: Guest on July-11-2021
0

check if function javascript

variableToCheck instanceof Function
Posted by: Guest on August-25-2020
0

isfunction javascript

function isFunction(functionToCheck) {
 return functionToCheck && {}.toString.call(functionToCheck) === '[object Function]';
}
Posted by: Guest on December-30-2020

Code answers related to "javascript is function"

Code answers related to "Javascript"

Browse Popular Code Answers by Language