Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check whether an object is a function?

function someFunction() {
  // function body
}
console.log(typeof someFunction);

output =>
function
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #object
ADD COMMENT
Topic
Name
8+8 =